From a57880dbbb669fb4273a74451235e58660e19d21 Mon Sep 17 00:00:00 2001 From: Anton Oellerer Date: Mon, 25 Oct 2021 15:18:41 +0200 Subject: [PATCH] Add jacoco coverage report --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index b88b312f..d2481037 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'checkstyle' + id 'jacoco' id 'java' id 'maven-publish' id "org.owasp.dependencycheck" version "6.4.1.1" @@ -71,6 +72,7 @@ javadoc { test { useJUnitPlatform() + finalizedBy jacocoTestReport } task automatedTests(type: Test) { @@ -108,5 +110,13 @@ sonarqube { property "sonar.sources", "src/main/java/" property "sonar.language", "java" property "sonar.java.binaries", "." + property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml" } +} + +jacocoTestReport { + reports { + xml.enabled true + } + dependsOn test } \ No newline at end of file