aboutsummaryrefslogtreecommitdiffstats
path: root/poi/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'poi/build.gradle')
-rw-r--r--poi/build.gradle2
1 files changed, 2 insertions, 0 deletions
diff --git a/poi/build.gradle b/poi/build.gradle
index bf54b17b0a..211ac58ddd 100644
--- a/poi/build.gradle
+++ b/poi/build.gradle
@@ -97,6 +97,7 @@ task compileJava9(type: JavaCompile) {
'--module-path', sourceSets.main.compileClasspath.asPath
]
}
+compileJava9.onlyIf {jdkVersion > 8}
task compileTest9(type: JavaCompile) {
dependsOn 'compileTestJava'
@@ -114,6 +115,7 @@ task compileTest9(type: JavaCompile) {
]
classpath = files()
}
+compileTest9.onlyIf {jdkVersion > 8}
jar {
dependsOn compileJava9