From 37b65f3b5c53deba5919b48093215b83ed6deeac Mon Sep 17 00:00:00 2001 From: AlexDev_ <56083016+alexdev03@users.noreply.github.com> Date: Sun, 16 Jun 2024 12:31:27 +0200 Subject: [PATCH] fix: Java compile level problem (#2) --- build.gradle | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 7cfaf77..62ef3cc 100644 --- a/build.gradle +++ b/build.gradle @@ -54,6 +54,10 @@ allprojects { javadoc.options.encoding = 'UTF-8' javadoc.options.addStringOption('Xdoclint:none', '-quiet') + java { + disableAutoTargetJvm() + } + repositories { mavenLocal() mavenCentral() @@ -100,9 +104,9 @@ subprojects { archiveClassifier.set('') } - if (['example-plugin', 'fabric-1.20.6', 'paper'].contains(project.name)) { - compileJava.options.release.set 21 - } + //if (['example-plugin', 'fabric-1.20.6', 'paper'].contains(project.name)) { + // compileJava.options.release.set 21 + //} // Don't include example plugin in publishing if (['example-plugin'].contains(project.name)) return;