-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Upgrade to OkHttp 4.9.3 #18506
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
Comments
Thanks for the suggestion. I think the switch to OkHttp4 and the introduction of a dependency on Kotlin is too big a change to make in 2.2, particularly after RC. Furthermore, Spring Framework 5.2 compiles and tests against 3.x. Thanks anyway. |
I cannot see the point here. I mean, the |
OkHttp is more than just the mock web server. It is also primarily used as an HTTP client in main application code. This means that moving to 4.x would result in Kotlin being pulled into the packaged project. |
Oh ok, that's not what I expected, because as Spring is having |
See |
@wilkinsona The issue is quite old and it was clear to have that rejected to that time. |
We don't have any plans to upgrade at this time. Spring Framework 5.3 continues to compile against 3.x and we continue to feel that version 4's Kotlin dependency is too large for Spring Boot to use that version by default. |
What are the Plans for Framework 6.x and Boot 3.x? Will they update to OkHttp 4.x? |
@larsgrefer there's no plan to upgrade to OkHttp 4.x at all at this time for the reason described above. |
Is there any update on this issue? |
We're going to revisit things in 2.x In light of the fact that OkHttp 3 is no longer being supported. Our initial thoughts are that we should upgrade to OkHttp 4 and users that don't like the additional Kotlin stdlib dependency can either downgrade or migrate to something else. |
This change is not backwards compatible from Boot's perspective. Tests for RestTemplateBuilder are unable to get the connect and read timeout when using OkHTTP 4.9.3. |
Scratch that. It turns out we can improve the tests for 3.14 to use an API that's also available in 4.9. |
I propose to update to OkHttp 4 for Spring Boot 2.2.x.
Despite being a new major version, it's binary and java-source compatible with OkHttp 3.
It even uses the Maven-Coordinates and the package name of OkHttp 3.
More information about this can be found here: https://square.github.io/okhttp/upgrading_to_okhttp_4/
The text was updated successfully, but these errors were encountered: