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: [email protected]
For additional commands, e-mail: [email protected]