-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
45 lines (37 loc) · 887 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
45 lines (37 loc) · 887 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
plugins {
kotlin("jvm") version "2.1.0"
application
}
group = "com.huhx0015.algorithmtester"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
// JUnit 5
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.1")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.10.1")
}
// Set consistent JVM target for both Java and Kotlin
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "21"
}
}
tasks.test {
useJUnitPlatform()
}
sourceSets {
main {
java.srcDirs("src/main")
}
test {
java.srcDirs("src/test")
}
}