From b35b2f3264f294fc02b5ac5f5e6223a5f45ad6c3 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Thu, 6 Jun 2024 16:34:49 +0530 Subject: [PATCH] chore: support java 21 or higher for 1.20.6 --- build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index b3fa346..550a18f 100644 --- a/build.gradle +++ b/build.gradle @@ -64,14 +64,14 @@ processResources { } tasks.withType(JavaCompile).configureEach { - it.options.release = 17 + it.options.release = 21 } java { withSourcesJar() - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } jar { @@ -87,11 +87,11 @@ modrinth { debugMode = false uploadFile = remapJar loaders = ["fabric", "quilt"] - syncBodyFrom = rootProject.file("README.md").text + // syncBodyFrom = rootProject.file("README.md").text dependencies { required.project "fabric-api" optional.version "modmenu", "${project.modmenu_version}" - optional.version "yacl", "${project.yacl_version}-fabric" + optional.version "yacl", "${project.yacl_version}" } }