-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
42 lines (37 loc) · 1.01 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
allprojects {
group = "io.graphqlfederation"
}
subprojects {
repositories {
mavenCentral()
jcenter()
}
}
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)
}
}
}
}
}