-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
33 lines (28 loc) · 791 Bytes
/
build.gradle
File metadata and controls
33 lines (28 loc) · 791 Bytes
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
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
//logging compile 'org.slf4j:slf4j-simple:1.7.7'
}
// This task compiles the service project before doing the docker build.
task dockerBuild(type: Exec) {
group 'build'
dependsOn (":example-service:assemble")
commandLine 'docker-compose', 'build', 'example-service'
commandLine 'docker-compose', 'build', 'sb-admin'
}
task cb(type: Exec) {
group 'build'
commandLine 'gw cb'
commandLine 'cd sb-admin && gw cb'
commandLine 'cd ..'
}