45 lines
1.3 KiB
Groovy
45 lines
1.3 KiB
Groovy
buildscript {
|
|
ext {
|
|
springBootVersion = '2.1.1.RELEASE'
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
group = 'io.bluemoon'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
}
|
|
|
|
ext['springCloudVersion'] = 'Greenwich.RC2'
|
|
|
|
dependencies {
|
|
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
|
|
implementation('org.springframework.boot:spring-boot-starter-web')
|
|
implementation('org.springframework.cloud:spring-cloud-starter-netflix-hystrix')
|
|
implementation('org.springframework.cloud:spring-cloud-starter-netflix-ribbon')
|
|
compile('org.springframework.retry:spring-retry:1.2.2.RELEASE')
|
|
compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client')
|
|
compileOnly('org.projectlombok:lombok')
|
|
testImplementation('org.springframework.boot:spring-boot-starter-test')
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
|
|
}
|
|
}
|