Enable JaCoCo code coverage reports

This commit is contained in:
Felipe Knorr Kuhn 2023-06-30 00:19:54 -07:00
parent 4341973acd
commit dd245eb182
No known key found for this signature in database
GPG key ID: 79619B52BB097C1A

View file

@ -10,6 +10,7 @@ plugins {
id 'java-library'
id 'extra-java-module-info'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'jacoco'
}
tasks.withType(AbstractArchiveTask) {
@ -92,6 +93,18 @@ shadowJar {
classifier = 'all'
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
jacoco {
toolVersion = '0.8.10'
}
extraJavaModuleInfo {
module('logback-core-1.2.8.jar', 'logback.core', '1.2.8') {
exports('ch.qos.logback.core')