Added Jacoco reports

This commit is contained in:
Speiger 2022-05-28 19:58:54 +02:00
parent 212ad1ace2
commit 5d6adb5446
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,6 @@
plugins { plugins {
id 'java-library' id 'java-library'
id 'jacoco'
} }
tasks.withType(JavaCompile) { tasks.withType(JavaCompile) {
@ -98,6 +99,12 @@ test {
useJUnit() useJUnit()
} }
jacocoTestReport {
reports {
xml.enabled true
}
}
publishing { publishing {
Properties props = new Properties() Properties props = new Properties()
if(file("$buildDir/credentials.properties").exists()) { if(file("$buildDir/credentials.properties").exists()) {