Visitar URL original
Update okhttp to 5.x · Issue #1500 · slackapi/java-slack-sdk · GitHub
Skip to content

Update okhttp to 5.x #1500

Description

@emouty

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

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

Activity

  1. zimeg commented on Aug 26, 2025

    @zimeg
    Member

    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?

  2. emouty commented on Aug 27, 2025

    @emouty
    Author

    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 😉

  3. github-actions commented on Sep 29, 2025

    @github-actions

    👋 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.

  4. louis-jaris commented on Oct 15, 2025

    @louis-jaris

    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 🙏

  5. EarlM1 commented on Oct 30, 2025

    @EarlM1

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

  6. RoyGrini commented on Nov 3, 2025

    @RoyGrini

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

  7. emouty commented on Feb 4, 2026

    @emouty
    Author

    Hello, do you have any updates regarding this issue?

  8. kurtostfeld commented on Mar 19, 2026

    @kurtostfeld

    I'd request that this slack sdk use the JDK 11 HTTP client instead of okhttp.

  9. louis-jaris commented on Apr 7, 2026

    @louis-jaris

    @zimeg do you need some help to do that ? As @kurtostfeld pointed out, using a builtin HTTP client would be the best approach to avoid this class of problem to happen again.

    Do you want us to throw some AI (like Claude Code) to it to do the refactoring?

  10. kurtostfeld commented on Apr 7, 2026

    @kurtostfeld

    I wanted to add a little more detail: I'm working on a large Java project with lots of dependencies; the slack API is one of many. the slack API depends on okhttp which depends on the Kotlin runtime, and we have different transitive dependencies on different versions of the Kotlin runtime which causes problems in our application at runtime.

    It would be ideal if the slack api used the JDK built-in http client which would reduce conflicting transitive dependencies problems. Thank you for the consideration 👍

  11. louis-jaris commented on May 5, 2026

    @louis-jaris

    @zimeg any news here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions