Make it easier to just use Boot’s dependency management with Gradle

Closes gh-11059
This commit is contained in:
Andy Wilkinson
2018-01-17 11:39:59 +00:00
parent 3cf1fb6763
commit 2668e41dd5
11 changed files with 227 additions and 46 deletions

View File

@@ -0,0 +1,25 @@
buildscript {
dependencies {
classpath files(pluginClasspath.split(','))
}
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
repositories {
mavenLocal()
}
dependencyManagement {
resolutionStrategy {
eachDependency {
if (it.requested.group == 'org.springframework.boot') {
it.useVersion project.bootVersion
}
}
}
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
}
}