Tuesday, March 7, 2017

Java 9 - Multi-Release Jar Example

Java 9 offers the possibility to build a JAR file with a format that "allows multiple, Java-release-specific versions of class files to coexist in a single archive" (JEP 238: Multi-Release JAR Files).

Content of my Multi-Release Jar example artifact

I build a sample project to show how Multi-Release Jars can be build with Maven. You can find it here on my GitHub page.