-
Notifications
You must be signed in to change notification settings - Fork 81
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
JPMS #353
Comments
Do you have a specific issue? I use resolver with modular apps all the time |
When I add this |
Oh, I see, are you trying to use the API outside tests? Have you tried |
It's not a matter or names |
By default, automatic module naming takes place, based on the dependency filename. While specific module support is nice, it's unnecessary to support JPMS clients |
Yeah the automatic module name should work but for some reason it does not |
I think we are trying to say the same thing... |
Here's a MRE |
Maven please... I don't use gradle :) |
Not even IntelliJ? |
This is a debugging / troubleshooting / exploration task. I really don't want to learn a new build tool :) Maybe that's the root cause of your problem. |
So, at this point, I don't really know if it's a Gradle issue or what: Documentation. One thing is certain: it's disappointing to see such a useful library in 2024 still targeting JDK 8 and lacking proper module support. JDK 9 was released in 2017, with JDK 11 following the next year — it's time to move on, folks. Finally, as mentioned before, I’m transitioning to another library with proper modules support. Feel free to close this issue or keep it open as a reminder for future improvement. |
ShrinkWrap resolver is tested up to JDK 17 now, so it fully supports JDK 17. JDK 8 is coincidental / legacy as you mentioned, and it's still supported because there is no downside right now. The library is primarily used for testing, and testing realm isn't really modularized often, so your issue here is really an outlier. Will keep the issue open, and it's good practice to put in the MANIFEST.MF entry for automatic module support. |
🚚 Move classes to backend package to avoid any possible split-packages errors in the future With this commit, we also transition from Shrinkwrap to JResolve to download artifacts from Maven as the first does not properly support Java Modules (shrinkwrap/resolver#353). Another alternative would have been Maven Resolve, but, being a typical Apache project, that is spaghetti coding at its finest (not that shrinkwrap is any better though, but at least it worked pretty good and was easy to use)
Any plan on making this compatible with modular projects?
I'm having a very hard time here trying to make it work with Gradle's extraJavaModuleInfo
The text was updated successfully, but these errors were encountered: