Skip to content

Commit

Permalink
Add support for Minecraft 1.21+ / Java 17 related dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vLuckyyy committed Sep 21, 2024
1 parent 0f302de commit c513c25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lobbyheads-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
`lobbyheads-checkstyle`

id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.gradleup.shadow") version "8.3.2"
id("xyz.jpenilla.run-paper") version "2.3.0"
}

Expand Down Expand Up @@ -55,8 +55,7 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

bukkit {
Expand All @@ -80,8 +79,9 @@ bukkit {
}

tasks.compileJava {
options.compilerArgs = listOf("-Xlint:deprecation", "-Xlint:unchecked")
options.compilerArgs = listOf("-Xlint:deprecation", "-parameters")
options.encoding = "UTF-8"
options.release = 17
}

tasks.test {
Expand Down

0 comments on commit c513c25

Please sign in to comment.