Skip to content

Upgrade to OkHttp 3.2 and adjust tests to work with new version#390

Merged
codefromthecrypt merged 2 commits into
OpenFeign:masterfrom
bjsousa:upgrade_to_okhttp3
May 17, 2016
Merged

Upgrade to OkHttp 3.2 and adjust tests to work with new version#390
codefromthecrypt merged 2 commits into
OpenFeign:masterfrom
bjsousa:upgrade_to_okhttp3

Conversation

@bjsousa

@bjsousa bjsousa commented May 5, 2016

Copy link
Copy Markdown
Contributor

Upgrading to OkHttp3 will allow applications with Netflix-Feign to use enhanced OkHttpClient capabilities, especially the newly introduced Builder method.

In addition to import and compile statement changes, method name changes were needed in multiple tests to work with the new dependency version. In the OkHttpClient class, clone() was replaced with newBuilder() as a way to change client settings.

Comment thread CHANGELOG.md Outdated
@@ -1,3 +1,6 @@
### Version 8.18

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

8.17 hasn't been cut, yet, so you can put this there

@codefromthecrypt

Copy link
Copy Markdown

LGTM, just nit on changelog.

Thanks for taking time to do this!

@bjsousa

bjsousa commented May 6, 2016

Copy link
Copy Markdown
Contributor Author

No problem! Feign is a huge help to us in a project we're working on at UW-Madison.

@tburch

tburch commented May 17, 2016

Copy link
Copy Markdown
Contributor

Thanks for this update!

@codefromthecrypt codefromthecrypt merged commit 18c58d7 into OpenFeign:master May 17, 2016
@tburch

tburch commented Jun 3, 2016

Copy link
Copy Markdown
Contributor

@adriancole Any idea when you'll do the next release that includes this PR?

@codefromthecrypt

codefromthecrypt commented Jun 5, 2016 via email

Copy link
Copy Markdown

@j-baker

j-baker commented Jul 7, 2016

Copy link
Copy Markdown

We've got a whole load of diamond dependencies with Feign and feign-okhttp, and this makes Feign 8.17.0 binary-incompatible with 8.16.0. This is causing us plenty of grief.

Since okhttp3 uses a different package name and so peacefully coexists with okhttp2, any chance we could create a feign-okhttp3 project, put the results of this PR in there, keep the old code in here, and publish an 8.18.0 which reverts the breaking change to feign-okhttp?

If this sounds like an appropriate course of action, I'd be happy to contribute it.

@codefromthecrypt

Copy link
Copy Markdown

@j-baker right. go for it!

velo pushed a commit that referenced this pull request Oct 8, 2024
Upgrade to OkHttp 3.2 and adjust tests to work with new version
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