You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi-release JARs allow packaging multiple variants of individual classes that target different JDK versions. Currently, no build system supports them, and there is no agreed convention on a directory structure layout.
A closer look at similar Maven plugins shows that they favor the following layout:
/src/main/java - base JDK,
/src/main/java9 - only the classes with JDK9-specific implementation,
/src/main/java10 - only the classes with JDK10-specific implementation,
etc.
The support would have to look like this:
running the compilation several times:
once for the base JDK,
then, once for each supported Java version.
each compiler run would have to take the combined effect of all the previous compilations, and compile only the classes that have their own variants in the given JDK version,
hooking into jar plugin to pack everything correctly,
adding the necessary entry to the manifest,
The open question is: what to do with unit tests?
The text was updated successfully, but these errors were encountered:
As mr-jars are only fully supported when they are packaged (i.e. not exploded in directory tree structure) one must execute test after packaging mr-jars.
Multi-release JARs allow packaging multiple variants of individual classes that target different JDK versions. Currently, no build system supports them, and there is no agreed convention on a directory structure layout.
A closer look at similar Maven plugins shows that they favor the following layout:
/src/main/java
- base JDK,/src/main/java9
- only the classes with JDK9-specific implementation,/src/main/java10
- only the classes with JDK10-specific implementation,The support would have to look like this:
jar
plugin to pack everything correctly,The open question is: what to do with unit tests?
The text was updated successfully, but these errors were encountered: