From de147d26a4dbdca2f7f1839b04ef06a07dcd72c0 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:25:38 -0400 Subject: [PATCH] Downgrade to Java 17 --- README.md | 2 +- build.gradle.kts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ac8104ce..366a66ec4 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ ## 📥 Download You can find latest successful build in [GitHub Action](https://github.com/Winds-Studio/Leaf/actions) or [Releases](https://github.com/Winds-Studio/Leaf/releases) -**Please note Java >= 21 is required.** +**Please note Java >= 17 is required, Java >= 21 is recommended.** ## 📦 Building Building a Paperclip JAR for distribution: diff --git a/build.gradle.kts b/build.gradle.kts index 2ea6c2bb2..91ef736c9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,13 +27,13 @@ subprojects { java { toolchain { - languageVersion.set(JavaLanguageVersion.of(21)) + languageVersion.set(JavaLanguageVersion.of(17)) } } tasks.withType { options.encoding = Charsets.UTF_8.name() - options.release.set(21) + options.release.set(17) } tasks.withType { options.encoding = Charsets.UTF_8.name()