Skip to content

stop using deprecated okhttp v2, upgrade to at least okhttp3 #8

@estraph

Description

@estraph

This API client currently depends on OkHttp v2:

<okhttp-version>2.7.5</okhttp-version>

V2 is considered to be deprecated since okhttp3 was released in 2016:

This release obsoletes OkHttp 2.x, and all code that uses OkHttp’s com.squareup.okhttp package should upgrade to the okhttp3 package. Libraries that depend on OkHttp should upgrade quickly to prevent applications from being stuck on the old version.

We had a specific case recently where this caused problems. Some newer code of ours which uses okhttp3 pulls in okio 2.x as a transitive dependency. But because this LD API client code uses okhttp 2.7.5 and indirectly depends on okio 1.6.0, we have a dependency conflict: the newer okhttp3 cannot work with okio 1.6.0, and the older okhttp v2 used by the LD API client cannot work with the newer okio 2.x.

Please upgrade to a more recent version of okhttp to prevent issues in newer applications using this client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions