]> source.dussan.org Git - poi.git/commitdiff
try to fix jaav 17 build
authorPJ Fanning <fanningpj@apache.org>
Wed, 27 Jul 2022 09:23:13 +0000 (09:23 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 27 Jul 2022 09:23:13 +0000 (09:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903052 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/build.gradle

index b28b7d2fcffebf5d4dc7d9b3f7904eaaf7290cf3..80a5e4470b92c91a850a4be75208ee870f86a54f 100644 (file)
@@ -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)