gradle
8.5

# useRuntimeClasspathVersions

abstract fun useRuntimeClasspathVersions()(source)

Configures the compile classpath of every source set to be consistent with the runtime classpath. For dependencies which are common between the compile classpath and the runtime classpath, the version from the runtime classpath is going to be used. In addition, the test runtime classpath is going to be configured to be consistent with the main runtime classpath. Prefer useCompileClasspathVersions unless you have special requirements at runtime.