Update OkHttp to 5.x
Checklist
- [X] I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- [X] I have looked into the API documentation and have not found a suitable solution or answer.
- [X] I have searched the issues and have not found a suitable solution or answer.
- [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- [X] I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
Currently some OkHttp deps of third party libs in my project are upgraded to 5.x (5.0.0.Alpha14), which will break the APIs in the auth0-java which used an old Okhttp.
Describe the ideal solution
I would like there is a new branch for the future development, and also upgrade the code style and code base to modern java that align with the popular frameworks.
- Upgrade codes to Java 17.
- Upgrade OkHttp to 5.x
- Add ReactiveStreams/Java 9
Flow.Publisherand Kotlin Coroutines support.
Alternatives and current workarounds
No response
Additional context
No response
Hi @hantsy,
Thank you for bringing this to our attention. We've noted your request and will keep you updated as we review and prioritize it.
Any updates?
Heads up, OkHttp 5 is out of alpha and now at version 5.1.0.
Hi @seljabali
Thank you for the Heads Up!!
You're right, OkHttp 5.x is now stable (currently 5.1.0), and it's important to start considering forward compatibility. But, upgrading to OkHttp 5 introduces breaking changes, making it non-trivial update that requires careful planning.
At this time, a major version upgrade of this SDK is not on our immediate roadmap. However, will keep this in our mind for future planning. Appreciate you brought this up.
Thank you
@tanya732 Can you start a new version to embrace the latest Java 17+ (and of course OKHttp 5)? Today, the mainstream frameworks/libraries in Java communities are updated to Java 17+.