-
Notifications
You must be signed in to change notification settings - Fork 3
Jackson JLink Build Tests and JPMS POM base updates #1
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
Conversation
Looks like just making the dependencies static in module-info's (to allow custom implementations) All Jackson modules build fine - it's the dependencies of the modules:) Error: Module ion.java not found, required by com.fasterxml.jackson.dataformat.ion
Unfortunately this is a one by one excersize, |
|
Excellent, thank you! Ion-java may be tricky, although I can see if I could contact them (I know or at least some of the authors). Guice is hopefully bit simpler to tackle. On plus side neither of these jackson modules is super widely used. |
Quick question... what was this change meant to do? It does not seem to import on Eclipse (complains about unknown packaging, |
Definitely supposed to do the merging! Let me take another squiz, I run it as mvn package then get a zip file out, let me check if something is a miss It builds a running JLink JRE artifact (Or supposed to I guess). |
Ok. Yeah makes sense. I hope I did not botch things too badly; trying to get command-line/maven AND eclipse to work ok. Still not quite sure why Woodstox did not fail before changes. On Woodstox, I did release |
Right...
You can only "provides" from the module containing the actual class, this one hit the RestEasy project as well when they tried to split them out into their own spi jar - |
oh the shade is removing the module-info from the final packaged jar |
When I build locally I do find the module-info in the packaged artifact, On maven though, this is the attached artifact - didn't pull the module info through |
I'll sort out the jakarta.activation requirement - the rest are all the 3rd parties waiting for them to update and these two
Otherwise 2.10 is 100% JPMS Errors presented when building JLink/JMod
|
@cowtowncoder I don't think it's worth having those actual test classes in this, as this test is literally the building of the jlink artifact - the dependencies seem to be the only issue now. |
My thinking was that while building a package with JLink does exercise big part, there are dynamic lookups, initialization, that might fail during runtime. And so very simple unit tests that call actual functionality could catch additional problem cases as well. Or is this something where JUnit and/or IDEs can not properly try loading of modules the way that actual applications do? |
note on |
FasterXML/jackson-modules-base#81