]> source.dussan.org Git - poi.git/commitdiff
compile module info only in Java 9+ builds
authorAndreas Beeker <kiwiwings@apache.org>
Wed, 11 Aug 2021 21:23:13 +0000 (21:23 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Wed, 11 Aug 2021 21:23:13 +0000 (21:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892248 13f79535-47bb-0310-9956-ffa450edef68

build.gradle

index c64b3b0ba3ea27dafa58b2ea42bbb559b0f745f5..bc5840d1e2540340c8d514f2b20d32caefc51b83 100644 (file)
@@ -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