2017-03-22 21:52:00 +00:00
|
|
|
buildscript {
|
|
|
|
ext {
|
|
|
|
springBootVersion = '1.5.2.RELEASE'
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
2017-03-28 19:34:24 +00:00
|
|
|
classpath('io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE')
|
2017-03-22 21:52:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
apply plugin: 'org.springframework.boot'
|
2017-03-28 19:34:24 +00:00
|
|
|
apply plugin: 'io.spring.dependency-management'
|
2017-03-22 21:52:00 +00:00
|
|
|
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2017-03-23 02:50:16 +00:00
|
|
|
compile("org.springframework.boot:spring-boot-starter-data-rest")
|
2017-03-22 21:52:00 +00:00
|
|
|
compile('org.springframework.boot:spring-boot-starter-data-jpa')
|
2017-03-23 02:50:16 +00:00
|
|
|
runtime('com.h2database:h2')
|
2017-03-28 19:34:24 +00:00
|
|
|
compile('org.springframework.cloud:spring-cloud-starter-config')
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-actuator')
|
|
|
|
compile('org.springframework.boot:spring-boot-starter-web')
|
2017-04-01 12:00:40 +00:00
|
|
|
compile('mysql:mysql-connector-java')
|
2017-04-16 10:33:38 +00:00
|
|
|
compile('org.springframework.cloud:spring-cloud-starter-eureka')
|
2017-04-16 12:17:24 +00:00
|
|
|
compile project(':common')
|
2017-04-16 10:33:38 +00:00
|
|
|
testCompile('org.springframework.cloud:spring-cloud-starter-eureka-server')
|
2017-03-28 19:34:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencyManagement {
|
|
|
|
imports {
|
|
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Camden.SR5"
|
|
|
|
}
|
2017-03-22 21:52:00 +00:00
|
|
|
}
|