From fd9c39648351ff7ca52b495936f505c7e4201179 Mon Sep 17 00:00:00 2001 From: Ryder Belserion <52214219+RyderBelserion@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:47:35 -0400 Subject: [PATCH] Only allow on 1.13+ --- build.gradle.kts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e461ced..0374e7f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -43,6 +43,10 @@ dependencies { compileOnly(libs.paper) } +java { + toolchain.languageVersion.set(JavaLanguageVersion.of(17)) +} + tasks { shadowJar { if (buildNumber != null) { @@ -60,8 +64,7 @@ tasks { } compileJava { - targetCompatibility = "8" - sourceCompatibility = "8" + options.release.set(17) } processResources {