Slackbot
11/28/2022, 3:46 PMVampire
11/28/2022, 3:53 PMArimil
11/28/2022, 3:56 PMArimil
11/28/2022, 4:10 PMjavaPlatform.allowDependencies()
dependencies {
constraints {
api(platform("org.springframework.boot:spring-boot-dependencies:2.7.5"))
}
api(platform("org.springframework.boot:spring-boot-dependencies:2.7.5"))
}
The above does make the platform available transitively.Vampire
11/28/2022, 4:12 PMallowDependencies and without the constraints block?Arimil
11/28/2022, 4:13 PMVampire
11/28/2022, 4:13 PMallowDependendies, it's even documented 🙂Vampire
11/28/2022, 4:14 PMplatformVampire
11/28/2022, 4:14 PMjavaPlatform.allowDependencies()
dependencies {
constraints {
api("org.springframework.boot:spring-boot-dependencies:2.7.5")
}
api(platform("org.springframework.boot:spring-boot-dependencies:2.7.5"))
}Vampire
11/28/2022, 4:15 PMplatform(...) just sets attributes for a dependency so that the platform variant is used. I think for a constraint this should at best be unnecessary clutter.Vampire
11/28/2022, 4:15 PMArimil
11/28/2022, 4:16 PM