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/06/05 14:13:58 UTC

svn commit: r1901678 - /xmlbeans/trunk/build.gradle

Author: fanningpj
Date: Sun Jun  5 14:13:58 2022
New Revision: 1901678

URL: http://svn.apache.org/viewvc?rev=1901678&view=rev
Log:
include pre-compiled java9 classes in Java 8 built jar

Modified:
    xmlbeans/trunk/build.gradle

Modified: xmlbeans/trunk/build.gradle
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/build.gradle?rev=1901678&r1=1901677&r2=1901678&view=diff
==============================================================================
--- xmlbeans/trunk/build.gradle (original)
+++ xmlbeans/trunk/build.gradle Sun Jun  5 14:13:58 2022
@@ -360,13 +360,20 @@ jar {
         include 'LICENSE.txt'
     }
 
+    from('build/classes/java9/main')
+
     from('src/main/maven') {
         exclude '**/*.java'
         into 'META-INF/maven'
         filter { line -> line.replaceAll('@VERSION@', XMLBeansVersion) }
     }
 
-    from('build/classes/java9/main')
+    if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
+        from('src/main/java9') {
+            include '**/*.class'
+            into 'META-INF/versions/9'
+        }
+    }
 
     duplicatesStrategy = DuplicatesStrategy.INCLUDE
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org