From c513c257fb3446a9dff2da9dd4e9df1d4ad1f9a3 Mon Sep 17 00:00:00 2001 From: Martin Sulikowski Date: Sat, 21 Sep 2024 14:40:28 +0200 Subject: [PATCH] Add support for `Minecraft 1.21+ / Java 17` related dependencies --- lobbyheads-core/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lobbyheads-core/build.gradle.kts b/lobbyheads-core/build.gradle.kts index 61260a6..c0c1b3f 100644 --- a/lobbyheads-core/build.gradle.kts +++ b/lobbyheads-core/build.gradle.kts @@ -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" } @@ -55,8 +55,7 @@ dependencies { } java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + toolchain.languageVersion.set(JavaLanguageVersion.of(21)) } bukkit { @@ -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 {