You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/10/29 08:52:47 UTC

svn commit: r1904914 - /poi/trunk/poi/build.gradle

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: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org