What is the difference of using dependencyManagement of the io.spring.dependency-management gradle plugin instead of using "implementation platform(..."?
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:2022.0.3"
}
}
dependencies {
implementation platform("org.springframework.cloud:spring-cloud-dependencies:2022.0.3")
...
}
There's some discussion about the differences in this GitHub issue. To summarise, the two most notable differences in terms of features are that the dependency management plugin:
The most notable difference in terms of performance is that Gradle's platform and enforcedPlatform support should be noticeably more efficient. Speaking as the main author of the dependency management plugin, unless you want to make use of the ability to override version properties, I would encourage you to use Gradle's platform and enforcedPlatform support.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With