fabmax / physx-jni

Java JNI bindings for Nvidia PhysX
MIT License
85 stars 8 forks source link

Module Support #38

Closed Sm0keySa1m0n closed 1 year ago

Sm0keySa1m0n commented 2 years ago

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 the extra-java-module-info gradle plugin.

fabmax commented 2 years 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?

Sm0keySa1m0n commented 2 years ago

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).

fabmax commented 1 year ago

I just published version 1.1.0 which is a multi-release jar and contains a module-info