diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index 9f9c40b..ee53f84 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -4,6 +4,7 @@ plugins { alias(libs.plugins.jacoco.testkit) alias(libs.plugins.publicationsReport) alias(libs.plugins.buildConfig) + jacoco } group = "com.github.gmazzo.buildconfig" @@ -79,8 +80,12 @@ tasks.pluginUnderTestMetadata { pluginClasspath.from(pluginUnderTestDependencies) } -tasks.check { - dependsOn("jacocoTestReport") +tasks.test { + finalizedBy(tasks.jacocoTestReport) +} + +tasks.jacocoTestReport { + reports.xml.required = true } tasks.publish {