-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
56 lines (48 loc) · 1.36 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
56
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("com.karumi.kotlinsnapshot:plugin:2.3.0")
}
}
apply(plugin = "com.karumi.kotlin-snapshot")
plugins {
kotlin("jvm") version "2.0.20"
application
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
kotlin("plugin.serialization") version "2.0.20"
}
group = "tcs"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.github.ajalt.clikt:clikt:5.0.0")
implementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation(platform("org.junit:junit-bom:5.11.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
implementation("org.jetbrains.kotlin:kotlin-reflect")
testImplementation("io.mockk:mockk:1.13.13")
testImplementation("org.assertj:assertj-core:3.26.3")
implementation(kotlin("reflect"))
}
kotlin {
jvmToolchain(17)
}
tasks.test {
useJUnitPlatform()
maxParallelForks = Runtime.getRuntime().availableProcessors()
jvmArgs(
"--add-opens",
"java.base/java.util=ALL-UNNAMED",
"--add-opens",
"java.base/java.lang.reflect=ALL-UNNAMED",
)
}
application {
mainClass.set("MainKt")
}