-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
41 lines (33 loc) · 960 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
kotlin("jvm") version "2.1.0"
application
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
}
group = "me.sedwi"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("com.michael-bull.kotlin-result:kotlin-result:1.1.12")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_23)
}
}
application {
mainClass.set("com.maedjyukghoti.tictactoe.MainKt")
}
// By default, the system.in of your Gradle build is not wired up with the system.in of the run (JavaExec) task.
// https://stackoverflow.com/a/13172566
tasks.named<JavaExec>("run") {
standardInput = System.`in`
}