aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2021-08-11 21:23:13 +0000
committerAndreas Beeker <kiwiwings@apache.org>2021-08-11 21:23:13 +0000
commit80b73d65b13f1d6576a33a352d1c384de481dbc4 (patch)
tree24c9b9aaf5f632595efc69e0707e93fee3bcce95 /build.gradle
parentf83a4152d5324e6cad5c522ad98174dab8c79f47 (diff)
downloadpoi-80b73d65b13f1d6576a33a352d1c384de481dbc4.tar.gz
poi-80b73d65b13f1d6576a33a352d1c384de481dbc4.zip
compile module info only in Java 9+ builds
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892248 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index c64b3b0ba3..bc5840d1e2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -124,6 +124,10 @@ subprojects {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
+
+ onlyIf {
+ (name != "compileJava9" && name != "compileTest9") || JavaVersion.current() != JavaVersion.VERSION_1_8
+ }
}
sourceCompatibility = JavaVersion.VERSION_1_8