From 82e6053498cb910ca107c7201ee245a02933c5a2 Mon Sep 17 00:00:00 2001 From: Guillermo Mazzola Date: Tue, 6 Feb 2024 21:33:19 +0100 Subject: [PATCH] Fixed coverage --- plugin/build.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) 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) }