-
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
Migrate to Jakarta EE 9 #124
Conversation
…red by newer glasshfish)
- changed exception from "Unrecognized field" to "Unrecognized property"
pom.xml
Outdated
@@ -34,20 +34,20 @@ | |||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |||
|
|||
<!-- Need Jersey+Jetty for testing; deps from DropWizard 1.2.9 --> | |||
<version.jersey>2.25.1</version.jersey> | |||
<version.jersey>3.0.0-M1</version.jersey> | |||
<!-- wrt CVE-2019-10247 --> | |||
<version.jetty>9.4.17.v20190418</version.jetty> |
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.
9.4.29.v20200521
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.
Sure I can update this, I just didn't think my commits should touch other dependency not strictly relevant to the pull request.
@@ -13,12 +13,12 @@ | |||
|
|||
requires com.fasterxml.jackson.jaxrs.base; | |||
|
|||
requires static javax.ws.rs.api; | |||
requires static jakarta.ws.rs.api; |
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.
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.
the static clauses in the moditect file are for backwards compatibility,
don't change them, add new ones instead - this makes sure that when modules are used, it can be done easily
also jakarta artifacts should be a shade on the javax. ones, with the package replaced, it shouldn't be a source code change
Just a quick comment: I have no plans to move ahead with this change at this point in time. |
@tamersaadeh @cowtowncoder With the What do you think? |
As far as I understand #127 only addresses the JPMS module information but doesn't update the package imports in the actual source files, does it? So we would need a second set of sources ( |
no - it get's shaded in with all the imports correctly applied |
@GedMarc Could you elaborate? I've checked out the I also only see Jersey 2.25.1 referenced in the POM files, not Jersey 3.0.0 (as of fcc3e95): jackson-jaxrs-providers/pom.xml Line 37 in fcc3e95
|
No the code itself does not reference it,. it get's shaded in and all the relevant imports get modified into a classified artefact on pom, called "-jakarta", Look at https://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html This keeps a single code base, while enabling full jakarta usage. You need to follow the readme and reference the jakarta classified artefacts. |
Turns out that this is missing on the |
:D Ok i think it might be waiting for the latest merge, @cowtowncoder are you targeting javax. for 3.0 release? Should I update the references? |
Ok, so the omission from As to 3.0 itself: I don't yet know, so probably the best thing to do would be to just merge functionality from |
Jakarta EE 9 platform renames all the "old" namespaces from javax.* to jakarta.*. This pull request performs this migration so that when Jacakrta EE 9 is released in June 2020 it will be compatible.
I ran mvn test and travis builds with no failures*.
Note 1: this is completely incompatible with the old namespace, so probably the major version of the library should be bumped.
Note 2: currently depends on pre-released versions of the JAXB specification (RC3). This can be updated when the final version is released.
Note 3: this PR is similar to my PR for FasterXML/jackson-modules-base#95 and FasterXML/jackson-dataformat-xml#407
*: I needed to modify 3 tests (7ff95e7) but I'm not exactly sure way this change was needed on my development PC.