-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (61 loc) · 2.81 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
id 'org.springframework.boot' version '2.3.1.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
}
group = 'io.pivotal.bankdemo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
description = "Micro-service to retrieve up to date quotes"
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/libs-milestone-local' }
}
ext {
set('springCloudVersion', "Hoxton.SR5")
set('wavefrontVersion', "2.0.0-RC1")
dekorateVersion = System.getProperty("dekorateVersion", "0.11.9")
user = "$System.env.USER"
}
bootBuildImage {
imageName = "${user}/$project.name"
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-hystrix'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-all'
implementation 'com.wavefront:wavefront-spring-boot-starter'
implementation 'org.springframework.cloud:spring-cloud-starter-sleuth'
implementation("io.dekorate:dekorate-spring-boot:${dekorateVersion}")
implementation("io.dekorate:kubernetes-annotations:${dekorateVersion}")
annotationProcessor("io.dekorate:kubernetes-annotations:${dekorateVersion}")
annotationProcessor("io.dekorate:dekorate-spring-boot:${dekorateVersion}")
annotationProcessor('org.springframework.boot:spring-boot-starter-actuator') //We need `dekorate` to see the actuator classes
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.security:spring-security-test'
testImplementation("io.dekorate:kubernetes-junit:${dekorateVersion}")
testImplementation("junit:junit:4.13")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.6.2")
testImplementation("io.dekorate:kubernetes-junit:${dekorateVersion}")
testRuntimeOnly('org.hibernate:hibernate-validator:5.2.4.Final')
}
dependencyManagement {
imports {
//mavenBom "io.pivotal.spring.cloud:spring-cloud-services-dependencies:${springCloudServicesVersion}"
mavenBom "com.wavefront:wavefront-spring-boot-bom:${wavefrontVersion}"
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}