From: Andreas Beeker Date: Wed, 11 Aug 2021 21:23:13 +0000 (+0000) Subject: compile module info only in Java 9+ builds X-Git-Tag: REL_5_1_0~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=80b73d65b13f1d6576a33a352d1c384de481dbc4;p=poi.git 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 --- 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