-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.gradle.kts
45 lines (40 loc) · 1.14 KB
/
build.gradle.kts
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
repositories {
mavenCentral()
}
subprojects {
group = "io.microservicesexample"
repositories {
mavenCentral()
jcenter()
// todo remove after release
maven("https://repository.jboss.org/nexus/content/repositories/public/")
}
}
plugins {
java
jacoco
}
tasks {
val subProjectsClasses = subprojects.map { it.buildDir.resolve("classes/kotlin/main") }
val subProjectsExecutionData = subprojects.map { it.buildDir.resolve("jacoco/test.exec") }
register<JacocoReport>("jacocoRootReport") {
classDirectories.setFrom(subProjectsClasses)
executionData(subProjectsExecutionData)
reports {
html.isEnabled = false
xml.isEnabled = true
xml.destination = File("$buildDir/jacoco/report.xml")
}
}
register<JacocoCoverageVerification>("jacocoCoverageVerification") {
classDirectories.setFrom(subProjectsClasses)
executionData(subProjectsExecutionData)
violationRules {
rule {
limit {
minimum = BigDecimal.valueOf(0.65)
}
}
}
}
}