javagl / Obj

A simple Wavefront OBJ file loader
Other
177 stars 38 forks source link

Java Modules #32

Open Igrium opened 4 months ago

Igrium commented 4 months ago

Does this library exist as a java module? I'm building a modular application, and I'd like to use it, but I'm not sure how without a module-info.

javagl commented 4 months ago

I'm not really up to date with the Java module system. But I'd be surprised if it wasn't possible to use an existing (for that matter: any existing pre-Java-9) Maven library with a Java 9 project. So... I'd have to read more details, also how this can be set up and configured so that it works smoothly in IDEs, but ... "Automatic Modules", as described in https://dev.java/learn/modules/automatic-module/ , seem to be the way to go here. Not sure how helpful things like https://stackoverflow.com/questions/46713289/how-to-use-3rd-party-library-in-java9-module are here, but ... what happens when you declare the dependency as usual, and then add something like requires de.javagl.obj to the module-info.java?