-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.gradle
52 lines (44 loc) · 1.14 KB
/
extension.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
subprojects {
apply(plugin: 'jacoco')
apply(plugin: 'dev.medly.repos')
apply(plugin: 'dev.medly.kotlin')
dependencies {
testImplementation "io.kotest:kotest-runner-junit5-jvm:5.3.0"
}
}
jacoco {
toolVersion "0.8.7"
}
detekt {
toolVersion = "1.20.0"
input = files("anagram-checker/src")
parallel = false
config = files("detekt.yml")
buildUponDefaultConfig = false
disableDefaultRuleSets = true
debug = true
ignoreFailures = false
}
tasks.named("detekt").configure {
reports {
xml.required.set(true)
xml.outputLocation.set(file("build/reports/detekt.xml"))
}
}
task codeCoverageReport(type: JacocoReport) {
// Gather execution data from all subprojects
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
// Add all relevant sourcesets from the subprojects
subprojects.each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled true
html.enabled true
csv.enabled false
}
}
// always run the tests before generating the report
codeCoverageReport.dependsOn {
subprojects*.test
}