diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index a7303b4..6d2ac16 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -5,6 +5,7 @@ plugins { alias(libs.plugins.kotlin.samReceiver) alias(libs.plugins.gradle.pluginPublish) alias(libs.plugins.publicationsReport) + jacoco } group = "io.github.gmazzo.test.aggregation" @@ -49,6 +50,14 @@ dependencies { compileOnly(plugin(libs.plugins.android)) } +tasks.test { + finalizedBy(tasks.jacocoTestReport) +} + +tasks.jacocoTestReport { + reports.xml.required = true +} + tasks.publish { dependsOn(tasks.publishPlugins) }