aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml-full/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'poi-ooxml-full/build.gradle')
-rw-r--r--poi-ooxml-full/build.gradle2
1 files changed, 1 insertions, 1 deletions
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)