Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Modules #32

Open
Igrium opened this issue Apr 13, 2024 · 1 comment
Open

Java Modules #32

Igrium opened this issue Apr 13, 2024 · 1 comment

Comments

@Igrium
Copy link

Igrium commented Apr 13, 2024

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
Copy link
Owner

javagl commented Apr 13, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants