From 3a91133ce973d7938c0713e6c242c0c543e000d7 Mon Sep 17 00:00:00 2001 From: Shikyoo <180590269+ishikyoo@users.noreply.github.com> Date: Wed, 2 Oct 2024 21:01:13 -0300 Subject: [PATCH] Set java compatibility to 17 --- build.gradle | 9 +++------ src/main/resources/leavesly.mixins.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 83b0597..8cfd451 100644 --- a/build.gradle +++ b/build.gradle @@ -38,17 +38,14 @@ processResources { } tasks.withType(JavaCompile).configureEach { - it.options.release = 21 + it.options.release = 17 } java { - // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task - // if it is present. - // If you remove this line, sources will not be generated. withSourcesJar() - sourceCompatibility = JavaVersion.VERSION_21 - targetCompatibility = JavaVersion.VERSION_21 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } jar { diff --git a/src/main/resources/leavesly.mixins.json b/src/main/resources/leavesly.mixins.json index 36df2ba..681e3dd 100644 --- a/src/main/resources/leavesly.mixins.json +++ b/src/main/resources/leavesly.mixins.json @@ -1,7 +1,7 @@ { "required": true, "package": "com.ishikyoo.leavesly.mixin", - "compatibilityLevel": "JAVA_21", + "compatibilityLevel": "JAVA_17", "mixins": [ "LeavesBlockMixin", "CherryLeavesBlockMixin",