auth0-java icon indicating copy to clipboard operation
auth0-java copied to clipboard

Update OkHttp to 5.x

Open hantsy opened this issue 1 year ago • 5 comments

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.Publisher and Kotlin Coroutines support.

Alternatives and current workarounds

No response

Additional context

No response

hantsy avatar Jun 04 '24 04:06 hantsy

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.

tanya732 avatar Dec 19 '24 07:12 tanya732

Any updates?

shalabi avatar Jul 20 '25 14:07 shalabi

Heads up, OkHttp 5 is out of alpha and now at version 5.1.0.

seljabali avatar Jul 29 '25 08:07 seljabali

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 avatar Jul 30 '25 06:07 tanya732

@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+.

hantsy avatar Aug 06 '25 09:08 hantsy