-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
48 lines (39 loc) · 954 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
48 lines (39 loc) · 954 Bytes
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
plugins {
kotlin("jvm") version "2.3.21"
`jacoco`
}
group = "de.paschelino"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
testImplementation("io.kotest:kotest-runner-junit5:5.9.1")
testImplementation("io.kotest:kotest-assertions-core:5.9.1")
}
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
}
}
@Suppress("UnstableApiUsage")
tasks.withType(JavaCompile::class).configureEach {
options.release = 21
}
tasks.test {
useJUnitPlatform()
}
jacoco {
toolVersion = "0.8.12"
reportsDirectory = layout.buildDirectory.dir("reports/jacoco")
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required = false
csv.required = false
html.required = true
html.outputLocation = layout.buildDirectory.dir("reports/jacoco/test/jacocoTestReport.html")
}
}