From e1bbeb54f3c1502a11409c963d750d8de20b29cb Mon Sep 17 00:00:00 2001 From: Ludwig Fritsch Date: Tue, 23 Apr 2024 12:10:22 +0200 Subject: [PATCH] Update jacoco testreport path #3025 --- analysis/build.gradle.kts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/analysis/build.gradle.kts b/analysis/build.gradle.kts index 9d0414a292..09e083c152 100644 --- a/analysis/build.gradle.kts +++ b/analysis/build.gradle.kts @@ -125,12 +125,23 @@ tasks.named("jacocoTestReport") { reports { xml.required.set(true) + html.required.set(false) } + + classDirectories.setFrom( + files( + classDirectories.files.map { + fileTree(it) { + exclude("**/AttributeDescriptors**") + } + }, + ), + ) } configure { properties { - property("sonar.coverage.jacoco.xmlReportPaths", "${project.rootDir}/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml") + property("sonar.coverage.jacoco.xmlReportPaths", "${project.rootDir}/build/reports/jacoco/test/jacocoTestReport.xml") } }