java-slack-sdk icon indicating copy to clipboard operation
java-slack-sdk copied to clipboard

Update okhttp to 5.x

Open emouty opened this issue 4 months ago • 6 comments

Hi,

The recent OkHttp 5.x release has split the artifact into platform-specific packages (okhttp-jvm and okhttp-android). This causes issues on our projects as we can't update their okhttp dependency without breaking validation rules like BanDuplicateClasses due to this change of artifact id.

With this update Okhttp have updated Kotlin to v2, so the Kotlin dependency will require to be updated to 2.x as well. Based on comment in pom this shouldn't be an issue.

Could you please update the OkHttp dependency to 5.x (okhttp-jvm) to avoid these conflicts?

Thanks for your consideration!

Category

  • [x] bolt (Bolt for Java)
  • [x] bolt-{sub modules} (Bolt for Java - optional modules)
  • [x] slack-api-client (Slack API Clients)
  • [ ] slack-api-model (Slack API Data Models)
  • [x] slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • [x] slack-app-backend (The primitive layer of Bolt for Java)

emouty avatar Aug 26 '25 15:08 emouty

Hey @emouty! 👋 Thank you for sharing this update with us 📫 ✨

We'll make note to bring this up to date in a future version, but I'm curious if for now using a pinned version helps avoid errors between dependencies?

zimeg avatar Aug 26 '25 16:08 zimeg

Yes, It should do the trick, but since its a major update and even though the changelog doesn't mention major breaking changes (other than the packaging), I'd rather do it the clean way if possible 😉

emouty avatar Aug 27 '25 08:08 emouty

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

github-actions[bot] avatar Sep 29 '25 00:09 github-actions[bot]

Hey team! Any update or timeline to share with us for the switch to okhttp 5.x ? We are using your SDK in our project, and because of okhttp 4.x we are stuck in an old version of mockwebserver (from okhttp)...

Thanks for your work 🙏

louis-jaris avatar Oct 15 '25 15:10 louis-jaris

Same issue as above. okhttp v5 added support for graalvm. Please update to v5 https://square.github.io/okhttp/changelogs/changelog/

EarlM1 avatar Oct 30 '25 03:10 EarlM1

This breaks for us too. Please update okHttp to 5.x

RoyGrini avatar Nov 03 '25 15:11 RoyGrini