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 fb620d458a..50180a80e4 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" + ) } } }