-
Notifications
You must be signed in to change notification settings - Fork 22
/
jacoco.gradle
26 lines (21 loc) · 911 Bytes
/
jacoco.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
subprojects {
if (!['example', 'android', 'android-test', 'jsr223', 'jpms-example'].contains(project.name)) {
apply plugin: 'jacoco'
jacocoTestReport {
dependsOn fileTree(buildDir.absolutePath).include('jacoco/*.exec')
executionData.setFrom(fileTree(project(':').buildDir.absolutePath).include('jacoco/*.exec'))
reports {
xml.required = true
html.required = true
csv.required = true
xml.outputLocation = file("${buildDir}/reports/jacoco/report.xml")
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: '**/party/iroiro/luajava/util/**')
}))
}
}
jacocoTestReport.shouldRunAfter project(':example').tasks.named('test')
}
}