Skip to content

Instantly share code, notes, and snippets.

@simonbasle
Created May 11, 2016 16:55
Show Gist options
  • Save simonbasle/3d27bb57d5d0fc1a9d1910b898ef42a4 to your computer and use it in GitHub Desktop.
Save simonbasle/3d27bb57d5d0fc1a9d1910b898ef42a4 to your computer and use it in GitHub Desktop.
Forcing the use of a different Spring Data BOM (not always a good idea)
buildscript {
ext {
springBootVersion = '1.3.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "io.spring.gradle:dependency-management-plugin:0.5.6.RELEASE"
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'spring-boot'
apply plugin: "io.spring.dependency-management"
jar {
baseName = 'demo'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom 'org.springframework.data:spring-data-releasetrain:Hopper-SR1'
}
}
dependencies {
compile('org.springframework.data:spring-data-couchbase')
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment