-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (44 loc) · 955 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
48
49
50
51
52
53
54
import org.gradle.jvm.toolchain.JavaLanguageVersion.of
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_13
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "2.1.0"
application
jacoco
}
group = "me.pc"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.code.gson:gson:2.11.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation(kotlin("test"))
implementation(kotlin("reflect"))
}
java {
toolchain {
languageVersion.set(of(13))
}
}
kotlin {
jvmToolchain(13)
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JVM_13)
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
}
}
tasks.jacocoTestReport {
reports {
csv.required.set(true)
}
}
application {
mainClass.set("MainKt")
}