From: PJ Fanning Date: Wed, 27 Jul 2022 09:23:13 +0000 (+0000) Subject: try to fix jaav 17 build X-Git-Tag: REL_5_2_3~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38fb4377bbdc0214b25c905ff0d71d1aa48dfb4f;p=poi.git try to fix jaav 17 build git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903052 13f79535-47bb-0310-9956-ffa450edef68 --- 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)