use Compile Classpath Versions
Configures the runtime classpath of every source set to be consistent with the compile classpath. For dependencies which are common between the compile classpath and the runtime classpath, the version from the compile classpath is going to be used. Unless you have a good reason to, this option should be preferred to useRuntimeClasspathVersions for different reasons:
- As code is compiled first against the given dependencies, it is expected that the versions at runtime would be the same.
- It avoids resolving the runtime classpath in case of a compile error.