From 926e9f973f9b8c5d07fcd4b879e473e9fbce3e0d Mon Sep 17 00:00:00 2001 From: "Kenneth J. Shackleton" Date: Tue, 27 Aug 2024 20:35:58 +0100 Subject: [PATCH] Kover 0.8.3. Signed-off-by: Kenneth J. Shackleton --- build.gradle.kts | 30 ++++++++++++------------------ gradle/libs.versions.toml | 2 +- selekt-android/build.gradle.kts | 17 ++++++----------- 3 files changed, 19 insertions(+), 30 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 36e3862b9e..cd4fd75edf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -228,24 +228,18 @@ allprojects { } } -koverReport { - defaults { - filters { - excludes { - classes("*Test*") - packages(listOf( - "*.benchmarks", - "*_generated" - )) - } - } - verify { - rule("Minimal coverage") { - bound { - minValue = 96 - aggregation = AggregationType.COVERED_PERCENTAGE - } - } +kover.reports { + filters.excludes { + classes("*Test*") + packages(listOf( + "*.benchmarks", + "*_generated" + )) + } + verify.rule("Minimal coverage") { + bound { + minValue = 96 + aggregationForGroup = AggregationType.COVERED_PERCENTAGE } } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e3edb544c5..6bfc720fb9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -45,7 +45,7 @@ cash-licensee = { id = "app.cash.licensee", version = "1.6.0" } detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.22.0" } dokka = { id = "org.jetbrains.dokka", version = "1.9.20" } ideaExt = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.1.7" } -kover = { id = "org.jetbrains.kotlinx.kover", version = "0.7.6" } +kover = { id = "org.jetbrains.kotlinx.kover", version = "0.8.3" } ksp = { id = "com.google.devtools.ksp", version = "2.0.20-1.0.24" } ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.5.0" } nexus = { id = "io.github.gradle-nexus.publish-plugin", version = "1.3.0" } diff --git a/selekt-android/build.gradle.kts b/selekt-android/build.gradle.kts index da6e20e668..1c0d99d969 100644 --- a/selekt-android/build.gradle.kts +++ b/selekt-android/build.gradle.kts @@ -73,17 +73,12 @@ dependencies { testRuntimeOnly(libs.robolectric.android.all) } -koverReport { - defaults { - mergeWith("debug") - } - androidReports("debug") { - filters { - excludes { - classes( - "*.BuildConfig" - ) - } +kover.reports { + variant("debug") { + filters.excludes { + classes( + "*.BuildConfig" + ) } } }