-
Run
./gradlew string-deps:dependencyInsight --configuration runtimeClasspath --dependency wire-bom
Observe that wire-bom is forced to version 4.9.2 because of the enforcedPlatform dependency instring-deps/build.gradle.kts
-
Run
./gradlew version-catalog-default:dependencyInsight --configuration runtimeClasspath --dependency wire-bom
Observe that wire-bom is NOT forced to version 4.9.2, but instead version 4.9.3 gets selected via the transitive dependency graph, DESPITE the enforcedPlatform inversion-catalog-default/build.gradle.kts
-
Run
./gradlew version-catalog-eager:dependencyInsight --configuration runtimeClasspath --dependency wire-bom
Observe that wire-bom is again forced to version 4.9.2, presumably because we are eagerly evaluating the version catalog entry using.get()
inversion-catalog-eager/build.gradle.kts
staktrace / 20231204-dep-resolution Goto Github PK
View Code? Open in Web Editor NEWStandalone minimal reproducer for https://github.com/gradle/gradle/issues/27282
Home Page: https://github.com/gradle/gradle/issues/27282