From 27c9395b645c10e9aed105413c5259d7623495c1 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 8 Jul 2024 14:36:12 +0100 Subject: [PATCH] Downgraded to Java 17 for compatibility --- build.gradle.kts | 4 ++-- eco-core/core-nms/v1_21/build.gradle.kts | 10 ++++++++++ gradle.properties | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 716fb8bd..4fea475d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -64,7 +64,7 @@ allprojects { compileKotlin { kotlinOptions { - jvmTarget = "21" + jvmTarget = "17" } } @@ -90,7 +90,7 @@ allprojects { } withType().configureEach { - options.release = 21 + options.release = 17 } } diff --git a/eco-core/core-nms/v1_21/build.gradle.kts b/eco-core/core-nms/v1_21/build.gradle.kts index 9fe838c4..118e82d2 100644 --- a/eco-core/core-nms/v1_21/build.gradle.kts +++ b/eco-core/core-nms/v1_21/build.gradle.kts @@ -13,4 +13,14 @@ tasks { build { dependsOn(reobfJar) } + + compileJava { + options.release = 21 + } + + compileKotlin { + kotlinOptions { + jvmTarget = "21" + } + } } diff --git a/gradle.properties b/gradle.properties index 5533e417..130758f8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ #libreforge-updater #Fri Jul 05 13:01:41 BST 2024 kotlin.code.style=official -libreforge-version=4.64.1 +libreforge-version=4.65.0 version=12.11.1