aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'poi-examples/build.gradle')
-rw-r--r--poi-examples/build.gradle1
1 files changed, 1 insertions, 0 deletions
diff --git a/poi-examples/build.gradle b/poi-examples/build.gradle
index ed6ae97c92..43d79bf494 100644
--- a/poi-examples/build.gradle
+++ b/poi-examples/build.gradle
@@ -51,6 +51,7 @@ final List MODULE_COMPILE_PATH = sourceSets.main.compileClasspath.findAll{ it.pa
task compileJava9(type: JavaCompile) {
dependsOn 'compileJava', ':poi-ooxml:jar', ':poi-scratchpad:jar'
+ onlyIf {jdkVersion > 8}
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(Math.max(11, jdkVersion))