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

[JENKINS-41631] Lower Guava dep to 11, which is what Jenkins still uses #123

Merged

Conversation

jglick
Copy link
Member

@jglick jglick commented Jul 31, 2017

Was noted in jenkinsci/plugin-pom#67.

@reviewbybees

@ghost
Copy link

ghost commented Jul 31, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

I am not sure it is safe in general. Stapler is being used in many libs embedded into Jenkins libs and plugins, and some of them may depend on Guava API available in newer versions. Same for non-Jenkins components like IDE plugins.

🐛 until somebody investigates Guava usage in transient dependencies. Maybe we could "just" update Jenkins instead.

@jglick
Copy link
Member Author

jglick commented Aug 2, 2017

Stapler is being used in many libs embedded into Jenkins libs and plugins

Such as?

some of them may depend on Guava API available in newer versions

Clearly not if they were being used from Jenkins. If Stapler is being used from some non-Jenkins application, that application is free to depend on any newer version it likes.

Same for non-Jenkins components like IDE plugins.

Huh? IDE plugins do not depend on Stapler. Why would they?

Maybe we could "just" update Jenkins instead.

That would be far, far riskier. Which is why I am doing the safe fix now. If you want to take on updating Guava in Jenkins core and analyzing the impact of that, go ahead. (And it is not mutually exclusive with this patch anyway.)

Copy link
Member

@batmat batmat left a comment

Choose a reason for hiding this comment

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

🐝

@jglick
Copy link
Member Author

jglick commented Aug 3, 2017

@oleg-nenashev ping

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

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

Clearly not if they were being used from Jenkins. If Stapler is being used from some non-Jenkins application, that application is free to depend on any newer version it likes.

Agreed, core would override that anyway. 🐝 just because I do not care about non-Jenkins usages

@jglick jglick merged commit 75268e8 into jenkinsci:master Aug 3, 2017
@jglick jglick deleted the requireUpperBoundDeps-JENKINS-41631 branch August 3, 2017 21:23
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.

3 participants