From 337237251ceeda87e3306ad4a919dcde79613dc0 Mon Sep 17 00:00:00 2001 From: Walker Fowlkes Date: Sat, 13 Apr 2024 11:39:59 -0700 Subject: [PATCH] force java version for kotlin/java so it wont say "version mismatch" anymore --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index 6651ceb..8061ebf 100644 --- a/build.gradle +++ b/build.gradle @@ -33,6 +33,16 @@ loom { } +java { + toolchain.languageVersion.set(JavaLanguageVersion.of(17)) +} +kotlin { + jvmToolchain { + languageVersion.set(JavaLanguageVersion.of("17")) + } +} + + dependencies { // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}"