Skip to content
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

Merged
merged 2 commits into from
Aug 31, 2018

Conversation

abayer
Copy link
Member

@abayer abayer commented Aug 29, 2018

  • JENKINS issue(s):
  • 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.
@abayer abayer added this to the 1.3.2 milestone Aug 29, 2018
Copy link
Contributor

@Wadeck Wadeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐝 LGTM

@abayer
Copy link
Member Author

abayer commented Aug 29, 2018

I'm fairly sure this isn't going to break anything else - nobody else uses json-schema-validator so far as I can tell, so there shouldn't be a need to shade it.

<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-json-org</artifactId>
<version>2.8.11</version>
Copy link
Member

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?

Copy link
Member Author

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>
Copy link
Member

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.

Copy link
Member Author

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.

@kshultzCB
Copy link
Contributor

kshultzCB commented Aug 29, 2018

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?

Copy link
Contributor

@kshultzCB kshultzCB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@dwnusbaum
Copy link
Member

dwnusbaum commented Aug 29, 2018

@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?

And I just remembered why we're on the 2.0.4 release of json-schema-validator (which uses old 2.2.x jackson): because the newer train of json-schema-validator (2.2.x, which uses 2.7.x jackson) also needs Guava 16.

@abayer
Copy link
Member Author

abayer commented Aug 29, 2018

@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.

@dwnusbaum
Copy link
Member

@abayer Ok, I checked mvn dependency:tree and there don't appear to be any weird Jackson/Guava versions being pulled in, so if the tests work then l think the change should be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants