You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/11/22 12:33:11 UTC

[GitHub] [flink] zentol opened a new pull request #10293: [FLINK-14905][build] Unify Java8/11 packaging process

zentol opened a new pull request #10293: [FLINK-14905][build] Unify Java8/11 packaging process
URL: https://github.com/apache/flink/pull/10293
 
 
   With this PR the packaging of jars is identical between Java 8 and 11, allowing jars compiled with the Java 8 profile (i.e., the jars we release) to also work in Java 11 environments.
   
   Fundamentally there was only 1 difference in the packaging in the first place; on Java 11 the jars included `jaxb-api` since some libraries require it, but assumed it to be contained by the JDK, which only holds until java 8.
   
   Since on Java 8 these classes are part of the JDK we can't simply include them in the jar like a normal dependency, since the JDK doesn't like that.
   Instead, flink-dist is now a multi-release jar and bundles jaxb-api such that it is only read on Java 11.
   
   The dependency is unpacked and placed into META-INF/versions/11, meaning that only JDK 11 and above will read these classes. JDK 8 isn't aware of this mechanism and ignores it completely.
   
   TODO: update licensing

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services