-
Notifications
You must be signed in to change notification settings - Fork 248
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
[FIXED JENKINS-53316] Switch to using jackson2-api dependency #286
Conversation
abayer
commented
Aug 29, 2018
- JENKINS issue(s):
- JENKINS-53316
- Description:
- And get rid of pipeline-model-json-shaded while we're here.
- Documentation changes:
- n/a
- Users/aliases to notify:
- ...
And get rid of pipeline-model-json-shaded while we're here.
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.
🐝 LGTM
I'm fairly sure this isn't going to break anything else - nobody else uses |
pipeline-model-api/pom.xml
Outdated
<dependency> | ||
<groupId>com.fasterxml.jackson.datatype</groupId> | ||
<artifactId>jackson-datatype-json-org</artifactId> | ||
<version>2.8.11</version> |
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.
Can you omit the version to get it automatically from the parent's dependencyManagement
?
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.
Whoops, forgot to do that. Fixing.
<dependency> | ||
<groupId>com.fasterxml.jackson.datatype</groupId> | ||
<artifactId>jackson-datatype-json-org</artifactId> | ||
<version>2.8.11</version> |
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.
Depending on this separately from jackson2-api could cause problems if the API plugin is updated and is no longer compatible with 2.8.11, but I don't think we have any great option since bundling that lib in jackson2-api would add an org.apache.geronimo.bundles:json
dependency to all users, which also seems undesirable.
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.
Yeah, pretty much my thinking.
The shading stuff originally went in for JENKINS-41911, right? IIRC, that was a pipeline-editor related thing of some sort. But that was...a year and a half ago? |
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.
🎉
@abayer Based on your old comment in JENKINS-41911, does using json-schema-validator:2.0.4 cause issues with the newer version of Jackson?
|
@dwnusbaum it appears to work - probably worth a manual test to be sure nothing weird is happening in the unit tests, but as far as I can tell, it’s not pulling the old Jackson in at all, while all the schema tests are working fine. |
@abayer Ok, I checked |