Skip to content

Commit

Permalink
Updated gradle compilation config
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Dec 5, 2024
1 parent 1e2d87c commit 2158be4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
6 changes: 4 additions & 2 deletions eco-core/core-backend-modern/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

group = "com.willfp"
version = rootProject.version

Expand All @@ -12,8 +14,8 @@ tasks {
}

compileKotlin {
kotlinOptions {
jvmTarget = "21"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
}
6 changes: 4 additions & 2 deletions eco-core/core-backend/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

group = "com.willfp"
version = rootProject.version

Expand All @@ -20,8 +22,8 @@ tasks {
}

compileKotlin {
kotlinOptions {
jvmTarget = "17"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
}
6 changes: 4 additions & 2 deletions eco-core/core-nms/modern/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("io.papermc.paperweight.userdev")
}
Expand All @@ -16,8 +18,8 @@ tasks {
}

compileKotlin {
kotlinOptions {
jvmTarget = "21"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
}
6 changes: 4 additions & 2 deletions eco-core/core-nms/v1_21/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("io.papermc.paperweight.userdev")
}
Expand Down Expand Up @@ -43,8 +45,8 @@ tasks {
}

compileKotlin {
kotlinOptions {
jvmTarget = "21"
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
version = 6.74.4
kotlin.daemon.jvmargs=-Xmx2g -XX:+UseG1GC -XX:MaxMetaspaceSize=512m

0 comments on commit 2158be4

Please sign in to comment.