File tree Expand file tree Collapse file tree 4 files changed +42
-35
lines changed
gradle-conventions/src/main/kotlin Expand file tree Collapse file tree 4 files changed +42
-35
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ plugins {
8
8
alias(libs.plugins.serialization) apply false
9
9
alias(libs.plugins.kotlinx.rpc) apply false
10
10
alias(libs.plugins.atomicfu) apply false
11
- // alias(libs.plugins.conventions.kover)
12
11
alias(libs.plugins.conventions.root)
13
12
}
14
13
Original file line number Diff line number Diff line change @@ -51,11 +51,3 @@ afterEvaluate {
51
51
})
52
52
}
53
53
}
54
-
55
- // apply(plugin = "org.jetbrains.kotlinx.kover")
56
-
57
- val thisProject = project
58
-
59
- // rootProject.configurations.matching { it.name == "kover" }.all {
60
- // rootProject.dependencies.add("kover", thisProject)
61
- // }
Original file line number Diff line number Diff line change @@ -7,31 +7,31 @@ import kotlinx.kover.gradle.plugin.dsl.CoverageUnit
7
7
import kotlinx.kover.gradle.plugin.dsl.GroupingEntityType
8
8
9
9
plugins {
10
- // id("org.jetbrains.kotlinx.kover")
10
+ id(" org.jetbrains.kotlinx.kover" )
11
11
}
12
12
13
- // kover {
14
- // reports {
15
- // total {
16
- // html {
17
- // onCheck.set(false)
18
- // charset.set("UTF-8")
19
- // htmlDir.set(rootDir.resolve("kover"))
20
- // }
21
- //
22
- // verify {
23
- // onCheck.set(false)
24
- //
25
- // rule {
26
- // groupBy.set(GroupingEntityType.APPLICATION)
27
- //
28
- // bound {
29
- // coverageUnits.set(CoverageUnit.LINE)
30
- // aggregationForGroup.set(AggregationType.COVERED_PERCENTAGE)
31
- // minValue.set(70)
32
- // }
33
- // }
34
- // }
35
- // }
36
- // }
37
- // }
13
+ kover {
14
+ reports {
15
+ total {
16
+ html {
17
+ onCheck.set(false )
18
+ charset.set(" UTF-8" )
19
+ htmlDir.set(rootDir.resolve(" kover" ))
20
+ }
21
+
22
+ verify {
23
+ onCheck.set(false )
24
+
25
+ rule {
26
+ groupBy.set(GroupingEntityType .APPLICATION )
27
+
28
+ bound {
29
+ coverageUnits.set(CoverageUnit .LINE )
30
+ aggregationForGroup.set(AggregationType .COVERED_PERCENTAGE )
31
+ minValue.set(70 )
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
3
+ */
4
+
5
+ package util
6
+
7
+ import org.gradle.api.Project
8
+
9
+ @Suppress(" unused" )
10
+ fun Project.applyKover () {
11
+ plugins.apply (" org.jetbrains.kotlinx.kover" )
12
+
13
+ rootProject.configurations.matching { it.name == " kover" }.all {
14
+ rootProject.dependencies.add(" kover" , this @applyKover)
15
+ }
16
+ }
You can’t perform that action at this time.
0 commit comments