forked from davpin/cf-SpringBootTrader
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
189 lines (153 loc) · 6.18 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
buildscript {
ext {
junitVersion = '4.12'
jacksonVersion = '2.5.3'
mysqlVersion = '5.1.35'
bootstrapVersion = '2.3.2'
}
repositories {
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/plugins-release/" }
maven { url "https://repo.spring.io/libs-release/" }
maven { url "https://repo.spring.io/libs-snapshot/" }
maven { url "https://repo.spring.io/snapshot" }
mavenCentral()
}
buildscript {
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.2.6.RELEASE"
classpath "io.spring.gradle:dependency-management-plugin:0.5.2.RELEASE"
}
}
}
// Apply versioning to all projects from versioning script.
allprojects { apply from: "$rootDir/gradle/versioning.gradle" }
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom 'org.springframework.cloud:spring-cloud-starter-parent:Brixton.M1'
mavenBom 'org.springframework.cloud:spring-cloud-sleuth:1.0.0.BUILD-SNAPSHOT'
}
}
jacoco { toolVersion = "0.7.1.201405082137" // reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
}
test { finalizedBy jacocoTestReport }
sourceCompatibility = 1.8
targetCompatibility = 1.8
//dependencyManagement {
// imports {
// mavenBom "org.springframework.cloud:spring-cloud-starter-parent:${springEurekaVersion}"
// }
//}
repositories {
maven { url "https://repo.spring.io/milestone" }
maven { url "https://repo.spring.io/plugins-release/" }
maven { url "https://repo.spring.io/libs-release/" }
maven { url "https://repo.spring.io/libs-snapshot/" }
maven { url "https://repo.spring.io/snapshot" }
mavenCentral()
}
dependencies {
//test packages
testCompile "junit:junit:$junitVersion"
}
}
project(':springboottrades-accounts') {
apply plugin: 'spring-boot'
jar { baseName = 'accounts' }
description = "Micro-service to deal with accounts and user logins"
dependencies {
compile "org.springframework.boot:spring-boot-starter"
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.cloud:spring-cloud-starter-eureka"
compile "org.springframework.cloud:spring-cloud-starter-config"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.cloud:spring-cloud-starter-sleuth"
compile "org.springframework.cloud:spring-cloud-starter-zipkin"
// test packages
testCompile "org.springframework.boot:spring-boot-starter-test"
testRuntime "com.jayway.jsonpath:json-path"
testRuntime "org.hsqldb:hsqldb"
// Runtime
runtime "mysql:mysql-connector-java:${mysqlVersion}"
//runtime "org.hsqldb:hsqldb"
}
}
project(':springboottrades-quotes') {
apply plugin: 'spring-boot'
jar { baseName = 'quotes' }
description = "Micro-service to retrieve up to date quotes"
dependencies {
compile "org.springframework.boot:spring-boot-starter"
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework:spring-web"
compile "com.fasterxml.jackson.core:jackson-databind"
compile "org.springframework.cloud:spring-cloud-starter-eureka"
compile "org.springframework.cloud:spring-cloud-starter-hystrix"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.cloud:spring-cloud-starter-config"
compile "org.springframework.cloud:spring-cloud-starter-sleuth"
compile "org.springframework.cloud:spring-cloud-starter-zipkin"
//runtime
//test packages
testCompile "org.springframework.boot:spring-boot-starter-test"
testRuntime "com.jayway.jsonpath:json-path"
}
}
project(':springboottrades-portfolio') {
apply plugin: 'spring-boot'
jar { baseName = 'portfolio' }
description = "Micro-service to manage portfolios"
dependencies {
compile "org.springframework.boot:spring-boot-starter"
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-data-jpa"
compile "org.springframework.cloud:spring-cloud-starter-hystrix"
compile "org.springframework.cloud:spring-cloud-starter-eureka"
compile "org.springframework.cloud:spring-cloud-starter-config"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.cloud:spring-cloud-starter-sleuth"
compile "org.springframework.cloud:spring-cloud-starter-zipkin"
//runtime
runtime "mysql:mysql-connector-java:${mysqlVersion}"
//runtime "org.hsqldb:hsqldb"
//test packages
testCompile "org.springframework.boot:spring-boot-starter-test"
testRuntime "com.jayway.jsonpath:json-path"
testRuntime "org.hsqldb:hsqldb"
}
}
project(':springboottrades-web') {
apply plugin: 'spring-boot'
jar { baseName = 'web' }
description = "Web interface to the springboot set of services"
dependencies {
compile "com.netflix.servo:servo-core:0.7.5"
compile "org.springframework.cloud:spring-cloud-cloudfoundry-connector"
compile "org.springframework.cloud:spring-cloud-core"
compile "org.springframework.cloud:spring-cloud-spring-service-connector"
compile "org.springframework.boot:spring-boot-starter-thymeleaf"
compile "org.springframework.boot:spring-boot-starter-security"
compile "org.springframework.cloud:spring-cloud-starter-eureka"
compile "org.springframework.cloud:spring-cloud-starter-hystrix"
compile "org.springframework.cloud:spring-cloud-starter-config"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.cloud:spring-cloud-starter-sleuth"
compile "org.springframework.cloud:spring-cloud-starter-zipkin"
compile "org.thymeleaf.extras:thymeleaf-extras-springsecurity4"
runtime "org.webjars:bootstrap:${bootstrapVersion}"
runtime "org.webjars:jquery:1.9.0"
testCompile "org.springframework.boot:spring-boot-starter-test"
}
}
task wrapper(type: Wrapper) { gradleVersion = '2.3' }