Reinstate forcing of versions but use the Platform's versions

Reinstate the logic that forces versions of certain dependencies but update it to obtain the versions from the Platform rather than them being hard-coded in the build script