aboutsummaryrefslogtreecommitdiff
path: root/build-logic/kotlin-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'build-logic/kotlin-plugins')
-rw-r--r--build-logic/kotlin-plugins/build.gradle.kts1
-rw-r--r--build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts9
2 files changed, 9 insertions, 1 deletions
diff --git a/build-logic/kotlin-plugins/build.gradle.kts b/build-logic/kotlin-plugins/build.gradle.kts
index 0ce8e9de..d1c9a3af 100644
--- a/build-logic/kotlin-plugins/build.gradle.kts
+++ b/build-logic/kotlin-plugins/build.gradle.kts
@@ -11,6 +11,7 @@ plugins {
dependencies {
implementation(libs.build.agp)
implementation(libs.build.binarycompat)
+ implementation(libs.build.kover)
implementation(libs.build.kotlin)
implementation(libs.build.spotless)
}
diff --git a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts
index 516f5e4f..d8e88bf5 100644
--- a/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts
+++ b/build-logic/kotlin-plugins/src/main/kotlin/com.github.android-password-store.kotlin-library.gradle.kts
@@ -6,7 +6,10 @@
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
-plugins { id("com.github.android-password-store.kotlin-common") }
+plugins {
+ id("com.github.android-password-store.kotlin-common")
+ id("org.jetbrains.kotlinx.kover")
+}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
@@ -15,3 +18,7 @@ tasks.withType<KotlinCompile>().configureEach {
}
}
}
+
+tasks.koverCollectReports {
+ outputDir.set(rootProject.layout.buildDirectory.dir("coverage-reports"))
+}