Author: fanningpj
Date: Sat Oct 29 08:52:46 2022
New Revision: 1904914
URL: http://svn.apache.org/viewvc?rev=1904914&view=rev
Log:
jdk8 build issue
Modified:
poi/trunk/poi/build.gradle
Modified: poi/trunk/poi/build.gradle
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/build.gradle?rev=1904914&r1=1904913&r2=1904914&view=diff
==============================================================================
--- poi/trunk/poi/build.gradle (original)
+++ poi/trunk/poi/build.gradle Sat Oct 29 08:52:46 2022
@@ -95,6 +95,7 @@ task compileJava9(type: JavaCompile) {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(jdkVersion)
+ if (jdkVendor != '') vendor = JvmVendorSpec.matching(jdkVendor)
}
destinationDirectory = file(JAVA9_OUT + VERSIONS9)
source = file(JAVA9_SRC)
@@ -103,6 +104,10 @@ task compileJava9(type: JavaCompile) {
'--patch-module',
"${MODULE_NAME}=${sourceSets.main.output.classesDirs.asPath}",
'--module-path', sourceSets.main.compileClasspath.asPath
]
+
+ onlyIf {
+ jdkVersion > 8
+ }
}
task cacheJava9(type: Copy) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]