diff options
Diffstat (limited to 'poi-ooxml/build.gradle')
-rw-r--r-- | poi-ooxml/build.gradle | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poi-ooxml/build.gradle b/poi-ooxml/build.gradle index bb54b14bbb..73c5145cb9 100644 --- a/poi-ooxml/build.gradle +++ b/poi-ooxml/build.gradle @@ -152,6 +152,7 @@ compileJava { task compileJava9(type: JavaCompile) { dependsOn 'compileJava', ':poi:jar' + onlyIf {jdkVersion > 8} javaCompiler = javaToolchains.compilerFor { languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) @@ -169,6 +170,7 @@ task compileJava9(type: JavaCompile) { task compileTest9(type: JavaCompile) { dependsOn 'compileTestJava', ':poi:testJar' + onlyIf {jdkVersion > 8} javaCompiler = javaToolchains.compilerFor { languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion)) |