Kelvin Chung
08/27/2025, 1:35 AMMartin
08/27/2025, 7:54 AMbuildscript{}
block and you can use regular dependency management APIsMartin
08/27/2025, 7:55 AMMartin
08/27/2025, 7:56 AMbuildscript {}
block for those casesMartin
08/27/2025, 7:57 AMbuild-logic
included build and then you can use the regular dependency management in your build-logic/build.gradle.kts
Vampire
08/27/2025, 9:29 AMbuildscript
block to use regular dependency management, you can just as you assumed just set a dependency constraint for that single transitive library in the buildscript
block.
pluginManagement.resolutionStrategy
is afair totally useless for this as it just allows you to map plugin ids to plugin code artifacts.
With your convention plugin you can also do it, yes. Either declare a dependency on the newer version of that transitive dependency, or cleaner would of course be declare a dependency constraint that is published as part of the convention plugin metadata.
So what works just fine is for example
buildscript {
dependencies {
classpath("com.fasterxml.jackson.core:jackson-core:2.19.2")
}
}
plugins {
id("com.github.node-gradle.node") version "3.5.1"
}
As well as just having in the build script of the convention plugin
dependencies {
constraints {
implementation("com.fasterxml.jackson.core:jackson-core:2.19.2")
}
}
Kelvin Chung
08/27/2025, 7:13 PMThomas Broyer
08/28/2025, 6:49 AM./gradlew buildEnvironment
?Kelvin Chung
08/28/2025, 7:43 AMbuildEnvironment
completely devoid of dependencies. So for me, adding a dependency constraint in my platform might not do the trick if the platform itself isn't applied everywhere, for example.Vampire
08/28/2025, 9:01 AM