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
This commit is contained in:
Andreas Beeker 2021-08-11 21:23:13 +00:00
parent f83a4152d5
commit 80b73d65b1

View 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