Slackbot
06/23/2022, 4:42 PMJendrik Johannes
06/24/2022, 7:53 AM*Classpath but not the *Elements
E.g.:
val constraint = configurations.create("constraint")
configurations.compileClasspath.get().extendsFrom(constraint)
configurations.runtimeClasspath.get().extendsFrom(constraint)
// or others/more if you have Android or KMP
And then define your alls constraints on the constraint configuration.Tapchicoma
06/24/2022, 8:19 AM<dependencyManagement> block in publication where constraint dependency is not used.
So I redo our script to apply constraint only when project has configuration with this constrained dependency.