Closed Sm0keySa1m0n closed 1 year ago
So far I never used the Java module stuff... Is there an easy way to add the module-info.java while maintaining Java 8 compatibility?
You could create a multi-release jar (this is also what LWJGL does), which in short means the module-info.class
file would reside in META-INF/versions/9
inside the built jar (along with setting Multi-Release: true
in MANIFEST.MF
).
I just published version 1.1.0
which is a multi-release jar and contains a module-info
It'd be good to have support for Java 9+ modularity (via
module-info.java
) so people don't need to resort to things like theextra-java-module-info
gradle plugin.