From aa1efd711a2b32ae582441245364a165b58b0ff5 Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Wed, 21 Feb 2024 18:22:07 +0100 Subject: [PATCH] Replace deprecated JacocoMerge task --- sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt b/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt index 3dacf3b..146db53 100644 --- a/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt +++ b/sonar/src/main/kotlin/com/bakdata/gradle/SonarPlugin.kt @@ -80,19 +80,14 @@ class SonarPlugin : Plugin { } if (!subprojects.isEmpty()) { - val jacocoMerge by tasks.registering(JacocoMerge::class) { + tasks.register("jacocoRootReport") { subprojects { executionData(tasks.withType().map { it.executionData }) } - destinationFile = file("$buildDir/jacoco") - } - tasks.register("jacocoRootReport") { - dependsOn(jacocoMerge) sourceDirectories.from(files(subprojects.map { it.the()["main"].allSource.srcDirs })) classDirectories.from(files(subprojects.map { it.the()["main"].output })) - executionData(jacocoMerge.get().destinationFile) reports { html.isEnabled = true xml.isEnabled = true