diff --git a/build.gradle b/build.gradle index a3d667c..877109f 100644 --- a/build.gradle +++ b/build.gradle @@ -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')