From dcb6742a26bf7383f7bf605e56417a23341c238b Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 27 Jul 2022 09:21:34 +0000 Subject: try to fix jaav 17 build git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903051 13f79535-47bb-0310-9956-ffa450edef68 --- poi-ooxml-full/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poi-ooxml-full') diff --git a/poi-ooxml-full/build.gradle b/poi-ooxml-full/build.gradle index 79c7ec1a4b..f37056df85 100644 --- a/poi-ooxml-full/build.gradle +++ b/poi-ooxml-full/build.gradle @@ -60,7 +60,7 @@ task compileJava9(type: JavaCompile) { dependsOn 'compileJava' javaCompiler = javaToolchains.compilerFor { - languageVersion = JavaLanguageVersion.of(jdkVersion) + languageVersion = JavaLanguageVersion.of(jdkVersion >= 17 ? 17 : 11) if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor) } destinationDirectory = file(JAVA9_OUT + VERSIONS9) -- cgit v1.2.3