Skip to content

Commit 2158be4

Browse files
committed
Updated gradle compilation config
1 parent 1e2d87c commit 2158be4

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

eco-core/core-backend-modern/build.gradle.kts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
group = "com.willfp"
24
version = rootProject.version
35

@@ -12,8 +14,8 @@ tasks {
1214
}
1315

1416
compileKotlin {
15-
kotlinOptions {
16-
jvmTarget = "21"
17+
compilerOptions {
18+
jvmTarget.set(JvmTarget.JVM_21)
1719
}
1820
}
1921
}

eco-core/core-backend/build.gradle.kts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
group = "com.willfp"
24
version = rootProject.version
35

@@ -20,8 +22,8 @@ tasks {
2022
}
2123

2224
compileKotlin {
23-
kotlinOptions {
24-
jvmTarget = "17"
25+
compilerOptions {
26+
jvmTarget.set(JvmTarget.JVM_17)
2527
}
2628
}
2729
}

eco-core/core-nms/modern/build.gradle.kts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id("io.papermc.paperweight.userdev")
35
}
@@ -16,8 +18,8 @@ tasks {
1618
}
1719

1820
compileKotlin {
19-
kotlinOptions {
20-
jvmTarget = "21"
21+
compilerOptions {
22+
jvmTarget.set(JvmTarget.JVM_21)
2123
}
2224
}
2325
}

eco-core/core-nms/v1_21/build.gradle.kts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id("io.papermc.paperweight.userdev")
35
}
@@ -43,8 +45,8 @@ tasks {
4345
}
4446

4547
compileKotlin {
46-
kotlinOptions {
47-
jvmTarget = "21"
48+
compilerOptions {
49+
jvmTarget.set(JvmTarget.JVM_21)
4850
}
4951
}
5052
}

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
version = 6.74.4
2+
kotlin.daemon.jvmargs=-Xmx2g -XX:+UseG1GC -XX:MaxMetaspaceSize=512m

0 commit comments

Comments
 (0)