From c5b412a8536b1ec9b5c5a9c8b2bced58cbf9ca8f Mon Sep 17 00:00:00 2001 From: PurpleWolfMC Date: Mon, 19 Jun 2023 19:12:19 -0700 Subject: [PATCH] I need help --- build.gradle | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index e99ea8b22..fac08eb51 100644 --- a/build.gradle +++ b/build.gradle @@ -46,11 +46,8 @@ dependencies { //} def targetJavaVersion = 17 java { - def javaVersion = JavaVersion.toVersion(targetJavaVersion) - sourceCompatibility = javaVersion - targetCompatibility = javaVersion - if (JavaVersion.current() < javaVersion) { - toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) + toolchain { + languageVersion.set(JavaLanguageVersion.of(17)) } }