diff --git a/build.gradle b/build.gradle index 35db2d4e..5fa1b286 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,7 @@ buildscript { dependencies { classpath 'io.spring.gradle:dependency-management-plugin:0.5.3.RELEASE' classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7' + classpath 'io.spring.gradle:spring-io-plugin:0.0.4.RELEASE' } } @@ -51,6 +52,22 @@ subprojects { sourceCompatibility = 1.7 targetCompatibility = 1.7 + if (project.hasProperty('platformVersion')) { + apply plugin: 'spring-io' + + repositories { + maven { url "https://repo.spring.io/libs-snapshot" } + } + + dependencyManagement { + springIoTestRuntime { + imports { + mavenBom "io.spring.platform:platform-bom:${platformVersion}" + } + } + } + } + dependencyManagement { imports { mavenBom "org.springframework:spring-framework-bom:$springVersion"