#79 - Add Gradle configuration to the BOM example.

This commit is contained in:
Andy Wilkinson
2015-04-16 17:24:07 +01:00
committed by Oliver Gierke
parent 2c9f75c7e0
commit e1e22f4e5e
3 changed files with 65 additions and 19 deletions

32
bom/build.gradle Normal file
View File

@@ -0,0 +1,32 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:0.5.0.RELEASE'
}
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
ext {
springVersion = '4.1.6.RELEASE'
springDataVersion = 'Fowler-RELEASE'
}
repositories {
jcenter()
}
dependencyManagement {
imports {
mavenBom "org.springframework:spring-framework-bom:${springVersion}"
mavenBom "org.springframework.data:spring-data-releasetrain:${springDataVersion}"
}
}
dependencies {
compile 'org.springframework.data:spring-data-rest-webmvc'
compile 'org.springframework.data:spring-data-mongodb'
}