diff --git a/analysis/build.gradle.kts b/analysis/build.gradle.kts index 9d0414a292..ad83b218d5 100644 --- a/analysis/build.gradle.kts +++ b/analysis/build.gradle.kts @@ -125,12 +125,24 @@ 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") + property("sonar.exclusions", "**/*AttributeDescriptors*") } }