aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml-lite/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'poi-ooxml-lite/build.gradle')
-rw-r--r--poi-ooxml-lite/build.gradle1
1 files changed, 1 insertions, 0 deletions
diff --git a/poi-ooxml-lite/build.gradle b/poi-ooxml-lite/build.gradle
index e9e046f2c5..2073737342 100644
--- a/poi-ooxml-lite/build.gradle
+++ b/poi-ooxml-lite/build.gradle
@@ -90,6 +90,7 @@ processResources.dependsOn 'compileOoxmlLite'
sourcesJar.dependsOn 'compileOoxmlLite'
task compileJava9(type: JavaCompile, dependsOn: 'compileJava') {
+ onlyIf {jdkVersion > 8}
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))
}