-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (45 loc) · 1.05 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import kotlinx.kover.api.KoverTaskExtension
import kotlinx.kover.api.CoverageEngine
import kotlinx.kover.api.VerificationValueType
plugins {
kotlin("jvm") version "1.5.31"
id("org.jetbrains.kotlinx.kover") version "0.4.2"
application
}
group = "com.kotlinx"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.test {
extensions.configure(KoverTaskExtension::class) {
isEnabled = true
includes = listOf("a.TestClass.kt")
}
useJUnitPlatform()
}
kover {
isEnabled = true
coverageEngine.set(CoverageEngine.JACOCO)
jacocoEngineVersion.set("0.8.7")
generateReportOnCheck.set(true)
}
tasks.koverVerify {
rule {
bound {
minValue = 100
maxValue = 100
valueType = VerificationValueType.COVERED_LINES_PERCENTAGE
}
}
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClass.set("MainKt")
}