From dd245eb182571a9c78053c72fe69d5be11f0a4ea Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Fri, 30 Jun 2023 00:19:54 -0700 Subject: [PATCH] Enable JaCoCo code coverage reports --- build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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')