It will only be there if you declare spring dependency management plugin in
plugins {}
block, also dependency management is no longer implicit, you have to explicitly declare it. If you did declare it but haven't used
plugins {}
mechanism you can configure it like this:
Copy code
plugins {
// other stuff
id("org.springframework.boot") version "2.0.0.RELEASE"
id("io.spring.dependency-management") version "1.0.4.RELEASE"
}
// if you declared spring dep management plugin in buildscript use this version:
// configure<DependencyManagementExtension> {
// otherwise, if you declared it in `plugins {}` block, like I show above, following will work:
dependencyManagement {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
b
bjartek
03/18/2018, 8:59 PM
That goal according to section 3.2 here is to not declare it in plugins. Is that doc wrong?
bjartek
03/18/2018, 9:00 PM
«The Spring Boot plugin’s dependency on the dependency management plugin «
bjartek
03/18/2018, 9:20 PM
so it looks like either way I have to specify the dependency-management plugin as a plugin with its verison. It is not a dependency on the spring-boot plugin?