-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (38 loc) · 930 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.kotlin.jvm") version "1.3.41"
jacoco
}
group = "celtric.katas"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.junit.jupiter:junit-jupiter:5.5.1")
}
tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestCoverageVerification)
}
jacoco {
toolVersion = "0.8.4"
reportsDir = file("$buildDir/customJacocoReportDir")
}
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
excludes = listOf("celtric.katas.gameoflife.acceptance.*")
limit {
counter = "LINE"
value = "TOTALCOUNT"
maximum = 0.toBigDecimal()
}
}
}
}
tasks.getting(KotlinCompile::class) {
kotlinOptions {
jvmTarget = "1.8"
}
}