-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
98 lines (82 loc) · 2.27 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
plugins {
id 'org.springframework.boot' version '2.5.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'jacoco'
}
group = 'org.worldcubeassociation'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
ext {
jacocoVersion = '0.8.6'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
bootJar {
archiveFileName = 'db-sanity-check.jar'
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = jacocoVersion
reportsDirectory = file("$buildDir/reports/jacoco")
}
jacocoTestCoverageVerification {
executionData fileTree("$buildDir/jacoco/").include("*.exec")
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['**/config/**'
]
)
}))
}
violationRules {
rule {
limit {
minimum = 0.01
}
}
}
}
jacocoTestReport {
executionData fileTree("$buildDir/jacoco/").include("*.exec")
reports {
xml.enabled true
csv.enabled false
html.destination file("${buildDir}/reports/jacoco")
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it,
exclude: ['**/config/**']
)
}))
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.3'
implementation 'org.springframework.boot:spring-boot-starter-mail:2.5.3'
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc:2.5.3'
implementation 'org.springframework.boot:spring-boot-starter-jdbc:2.5.3'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.3'
developmentOnly 'org.springframework.boot:spring-boot-devtools:2.5.3'
implementation 'org.projectlombok:lombok:1.18.20'
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.7.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.2")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.7.2")
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.26'
implementation group: 'org.json', name: 'json', version: '20201115'
implementation 'com.google.guava:guava:30.1.1-jre'
implementation 'commons-io:commons-io:2.8.0'
}