PR: MNG-820 ensure only the right dependencies are used when two different versions have different deps.