From 38fb4377bbdc0214b25c905ff0d71d1aa48dfb4f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 27 Jul 2022 09:23:13 +0000 Subject: [PATCH] try to fix jaav 17 build git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903052 13f79535-47bb-0310-9956-ffa450edef68 --- poi-ooxml/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index b28b7d2fcf..80a5e4470b 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -207,7 +207,7 @@ task compileTest9(type: JavaCompile) { dependsOn 'compileTestJava', ':poi:testJar' javaCompiler = javaToolchains.compilerFor { - languageVersion = JavaLanguageVersion.of(jdkVersion) + languageVersion = JavaLanguageVersion.of(jdkVersion >= 17 ? 17 : 11) if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor) } destinationDirectory = file(TEST9_OUT + VERSIONS9) -- 2.39.5