From e4961708ba9579b6f1747057a2a4b09e9fd9d677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linnea=20Gr=C3=A4f?= Date: Sun, 7 Apr 2024 22:34:27 +0200 Subject: [PATCH] Set java compiler --- legacy/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/build.gradle.kts b/legacy/build.gradle.kts index 66454d110..9d69db49d 100644 --- a/legacy/build.gradle.kts +++ b/legacy/build.gradle.kts @@ -13,6 +13,12 @@ plugins { alias(libs.plugins.dokka) } +tasks.withType(JavaCompile::class) { + this.javaCompiler.set(javaToolchains.compilerFor { + this.languageVersion.set(JavaLanguageVersion.of(8)) + }) +} + unimined.minecraft { version(libs.versions.mc.legacy.get()) mappings {