Skip to content

Instantly share code, notes, and snippets.

@wilkinsona
Created March 30, 2015 09:12
Show Gist options
  • Save wilkinsona/13618eb4cc4b78b2eb49 to your computer and use it in GitHub Desktop.
Save wilkinsona/13618eb4cc4b78b2eb49 to your computer and use it in GitHub Desktop.
Gradle configuration to use Spring Data Fowler with Spring Boot 1.2
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:0.4.1.RELEASE'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.2.RELEASE'
}
}
repositories {
jcenter()
}
apply plugin: 'spring-boot'
apply plugin: 'io.spring.dependency-management'
// Import Spring Boot's bom, spring-boot-dependencies
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:1.2.2.RELEASE'
}
}
// Override the spring-data-releasetrain.version property
ext['spring-data-releasetrain.version'] = 'Fowler-RELEASE'
dependencies {
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment