Skip to content

Commit 84f5e8a

Browse files
authored
Bump Kover version to 0.8.0-Beta2 (#2624)
1 parent 1ffdbaf commit 84f5e8a

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ buildscript {
8383
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
8484
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
8585
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
86-
classpath "org.jetbrains.kotlinx:kover:$kover_version"
86+
classpath "org.jetbrains.kotlinx:kover-gradle-plugin:$kover_version"
8787
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:$validator_version"
8888
classpath "org.jetbrains.kotlinx:kotlinx-knit:$knit_version"
8989
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.5.3' // Android API check
@@ -179,7 +179,7 @@ allprojects {
179179

180180
def unpublishedProjects = ["benchmark", "guide", "kotlinx-serialization-json-tests"] as Set
181181
def excludedFromBomProjects = unpublishedProjects + "kotlinx-serialization-bom" as Set
182-
def uncoveredProjects = ["kotlinx-serialization-bom", "benchmark", "guide"] as Set
182+
def uncoveredProjects = ["kotlinx-serialization-bom", "benchmark", "guide", "kotlinx-serialization-json-okio"] as Set
183183

184184
subprojects {
185185
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all { task ->

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ validator_version=0.13.2
1919
knit_version=0.5.0
2020
# Only for tests
2121
coroutines_version=1.6.4
22-
kover_version=0.4.2
22+
kover_version=0.8.0-Beta2
2323
okio_version=3.6.0
2424

2525
kover.enabled=true

gradle/kover.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
* Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

5-
apply plugin: 'kover'
6-
7-
tasks.withType(Test) { task ->
8-
kover {
9-
enabled = rootProject.ext.koverEnabled
5+
apply plugin: 'org.jetbrains.kotlinx.kover'
106

7+
kover {
8+
if (!rootProject.ext.koverEnabled) {
9+
disable()
1110
}
12-
}
13-
tasks.koverVerify {
14-
// Core is mainly uncovered because a lot of serializers are tested with JSON
15-
def minPercentage = (project.name.contains("core") || project.name.contains("properties")|| project.name.contains("json-okio")) ? 44 : 80
16-
rule {
17-
name = "Minimal line coverage rate in percents"
18-
bound {
19-
minValue = minPercentage
20-
// valueType is 'COVERED_LINES_PERCENTAGE' by default
11+
12+
reports {
13+
verify {
14+
rule("Minimal line coverage rate in percents") {
15+
16+
// Core is mainly uncovered because a lot of serializers are tested with JSON
17+
def minPercentage = (project.name.contains("core") || project.name.contains("properties") || project.name.contains("json-okio")) ? 44 : 80
18+
minBound(minPercentage)
19+
// valueType is 'COVERED_LINES_PERCENTAGE' by default
20+
}
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)