-
Notifications
You must be signed in to change notification settings - Fork 79
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
2.10 - JAXB to JPMS #81
Conversation
@@ -12,6 +12,7 @@ | |||
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; | |||
import com.fasterxml.jackson.annotation.*; | |||
import com.fasterxml.jackson.core.*; | |||
import com.fasterxml.jackson.core.json.PackageVersion; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, no, that would bring wrong PackageVersion
-- probably brought in by IDE accidental. This is auto-generated from template as part of build process.
@GedMarc Thanks! Since there is already Moditect use in place I tried to figure out meaningful diff(s) and it looks like the key is that default Activation dependency should be excluded and another one added -- I am guessing since latter has module-info, former doesn't? But I wasn't sure of Moditect settings additions: are those needed? Or was is just from earlier PR that added moditect usage bit different way? If you have time, have a look at |
JAXB now uses jakarta (org.glassfish.jaxb and jakarta.jaxb.api-impl) and is JLink friendly (module-info's exist) Update JAXB and Activation references to use the following for API
Include for tests :
|
Added as suggested for I suspect same changes then needed for JAX-RS provider repo? |
@GedMarc At this point I think I am done (... right :) ) with most components (*) except for JAX-RS providers which may still have issues. I have hit some roadblocks wrt trying to verify goodness/lack thereof (see https://github.com/FasterXML/jackson-jdk11-compat-test for my feeble attempts), so could use help on sanity checking. (*) not including Scala and Kotlin modules. |
Right - so after all the comments and build checks - It's looking really fantastic! :) JaxRS - I've been part of the RestEasy team doing the JPMS updates as well, RestEasy 4 is fully compliant - Using the named libraries (jaxb/rest/jackson) here - https://github.com/GedMarc/GuicedRestServices/blob/master/pom.xml I've linked it up with my modules for jackson, I can put together the test for you and follow up with the jboss guys on the migration to 3.0-snapshot once guice is done :) For Apache commons (all the dependencies that rely on it), I have been working with @jfallows (Here GedMarc/JPMSPendingParent#1) and it looks like those are all moving really quickly as well, to solve those dependencies for the likes of RestEasy, Guice, IO handlers, and the rest of that sort. Personal opinion is obviously that Spring is going to suffer the most with blocked class handling, i know that @larsgrefer (from https://gitter.im/classgraph/Lobby) has been implementing the scanner from ClassGraph to load and do all that but i'm not sure that's going to get around the fat-jar and standard packaging restrictions for JPMS, including resource fetching from external modules (completely blocked now without an opens clause) - i have very strong doubts it's going to come through soon Java EE ends with Java 8, Jakarta 10 is marked for JPMS, but is over 2 years away- MicroProfile have no intention (even in v3) of moving to JPMS yet (even though its a rest container?) which I confirmed in a meetup last week. I don't feel much time needs to be spent on these modules until the owners have updated their projects, these ones in particular have lots of work needed on that front, and some with large architectural changes. |
Ok thanks. I think I will try to get |
I'll close this one, can start new for further changes (now that baseline exists). |
FasterXML/jackson-databind#2312
Need to remove the imports for packageversion (how on earth do you do that xD)