From 80b73d65b13f1d6576a33a352d1c384de481dbc4 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Wed, 11 Aug 2021 21:23:13 +0000 Subject: [PATCH] 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 --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5