2016-11-04 18:38:15 +08:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
springBootVersion = '1.2.3.RELEASE'
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
|
|
classpath('io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'spring-boot'
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
|
2017-03-15 21:19:11 +08:00
|
|
|
version = '0.0.1-SNAPSHOT'
|
2016-11-04 18:38:15 +08:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-web')
|
|
|
|
compileOnly('org.acme:foo')
|
|
|
|
testCompile('org.springframework.boot:spring-boot-starter-test')
|
|
|
|
}
|