-
Notifications
You must be signed in to change notification settings - Fork 19
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
Upgrade to v3.14.9 and remove okhttp3 url-connection #3
Conversation
Also, we discussed pulling ObsoleteUrlFactory.java into this plugin. That would make it the responsibility of this plugin to maintain that obsolete API for use. |
It's hard to evaluate this without seeing PRs to other plugins currently using OkHttp to understand whether this would affect them being able to use the API plugin. Can we get draft PRs filed for downstream plugins to understand the impact? |
The urlconnection has not been support for many years and is incompatible with a number of okhttp3 features. Better to not include it. See https://square.github.io/okhttp/changelog_3x/#version-3140 and copy down the ObsoleteUrlFactory if you absolutely must, but we do not want to have this plugin forcing that dependency.
The move to a version of okhttp3 that does not support HttpUrlConnection should only effect plugins that depend that feature (or have transitive dependencies on it). Kubernetes client doesn't depend on it: The version change may still have some effect. I'll need to create script of some sort to go looking for okhttp3 in the transitive dependencies of jenkins plugins. |
SummaryTo summarize our offline discussion and my analysis: The github-api-plugin is the only current consumer of this plugin. Thus the main concern in updating this plugin to a version that does not support
I've done analysis on the dependencies and this appears safe. DetailsOnly the following plugins depend on github-api-plugin:
okhttp3.okhttp-urlconnectionThese are the only plugins that bundle
None of the plugins that currently bundle |
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.
Changes and doc updates look good to me. It would be great to see a linked PR to github-api to test the change.
Linked PR showing this working - jenkinsci/github-api-plugin#57 |
Co-authored-by: Devin Nusbaum <[email protected]>
I've published an initial v3.12.12 with the url-connection still included.
This updates to the latest v3.14, which does not have url-connection any more.
Note: okhttp 2.7.5 urlconnection is retained as that is much more widely used.