-
Notifications
You must be signed in to change notification settings - Fork 253
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
Missing module-info.java #262
Comments
@webracer999 Thanks for the issue! Would you mind sending a PR to fix this? I'd be happy to review and incorporate it, if possible. I appreciate the heads up. |
It is easy for Java >= 9 (simply create a The example projects above (gson and picocli) also support both: Java <= 1.8 and Java >= 9. I need to have a look, how they solved it. I am a bit busy and I am not doing very well at the moment but I will try to investigate and create a PR. |
Sorry to hear you aren't doing too well right now. I hope things get better. Thanks for setting the intention to help out. I know very little about JigSaw, so your assistance would make a huge difference! |
The easiest way to solve this is to use moditect. If @webracer999 doesn't get well soon I can make a PR |
Thank you @lincolnthree and @bowbahdoe. I started with a PR some days ago (inspired by Gson). Now I have tested the changes and submitted the PR. @bowbahdoe: Feel free to improve the PR. PS: The |
Fixed. Thank you! Is the PR ready for review? It looks pretty clean and simple so far to me. Just an extra Maven plugin/config. I left one comment/question in the PR for you. Since I am only somewhat familiar with Java 9 Modules (I am familiar with module systems in general) could you give me a quick overview of how this changes the build process?
Thanks so much for your hard work on this! |
One more question. Why is the |
The Moditect plugin is bound to the
No new build-outputs - the existing build output JAR is modified.
I assume you need Java 9+ because Java 1.8 can not compile the
I get the same error when I try to build the master branch with Java 1.8. Maybe my Java setup is broken there?
You are welcome. And thank you for prettytime. :) |
I tried it and yes Moditect plugin could also generate the With the But if you wish I could change the Moditect configuration to auto generate the |
Prettytime does not have a
module-info.java
(-> Java jigsaw project). So there is no way to usejlink
to create a custom java runtime image.jlink
fails with "Error: automatic module cannot be used with jlink: prettytime from [...]/.m2/repository/org/ocpsoft/prettytime/prettytime/5.0.7.Final/prettytime-5.0.7.Final.jar"For example, two projects that work with
jlink
: https://github.com/google/gson and https://github.com/remkop/picocliThe text was updated successfully, but these errors were encountered: