-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
72 lines (58 loc) · 1.87 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
plugins {
id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'application'
id 'java-library'
id 'jacoco'
id 'org.sonarqube' version '3.2.0'
id 'com.google.cloud.tools.jib' version '3.0.0' apply false
}
ext {
hapiVersion = '5.4.0'
fromImage = 'gcr.io/distroless/java:11'
imageRoot = 'nickrobisonusds'
}
allprojects {
repositories {
mavenCentral()
}
group = 'gov.usds.vaccineschedule'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
}
subprojects {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
apply plugin: 'application'
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
dependsOn test // tests are required to run before generating the report
}
test {
useJUnitPlatform()
}
}
task stage {
dependsOn(['clean', ':api-application:assemble', ':wa-publisher:assemble'])
assemble.mustRunAfter clean
doLast {
delete(fileTree(dir: "api-application/build", exclude: "libs"))
delete(fileTree(dir: "api-application/build/libs", exclude: "*.jar"))
delete(fileTree(dir: "publisher-application/build", exclude: "libs"))
delete(fileTree(dir: "publisher-application/build/libs", exclude: "*.jar"))
delete(fileTree(dir: "wa-publisher/build", exclude: "libs"))
delete(fileTree(dir: "wa-publisher/build/libs", exclude: "*.jar"))
delete(fileTree(dir: "common/build", exclude: "libs"))
delete(fileTree(dir: "common/build/libs", exclude: "*.jar"))
}
}
sonarqube {
properties {
property "sonar.projectKey", "nickrobison-usds_vaccine-scheduler"
property "sonar.organization", "nickrobison-usds"
property "sonar.host.url", "https://sonarcloud.io"
}
}