plugins {
id "org.springframework.boot" version "2.1.4.RELEASE"
}
apply plugin: "io.spring.dependency-management"
plugins {
id "org.springframework.boot" version "2.1.4.RELEASE"
}
dependencyManagement {
imports {
mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
}
}
plugins {
id "org.springframework.boot" version "2.1.4.RELEASE"
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:${springbootVersion}")
}
- https://docs.gradle.org/current/userguide/dependency_management_terminology.html#dependency_management_terminology
- https://docs.gradle.org/5.0/userguide/managing_transitive_dependencies.html#sec:bom_import
- https://docs.spring.io/spring-boot/docs/2.1.x/gradle-plugin/reference/html/
org.springframework.boot
depend ondependency-management-plugin
-
When you apply the io.spring.dependency-management plugin, Spring Boot’s plugin will automatically import the spring-boot-dependencies bom from the version of Spring Boot that you are using.
-