Skip to content

Update to OkHttp 4.x #36

@fondesa

Description

@fondesa

Currently, this plugin depends on the version 3.8.1 of OkHttp.
Not all the methods in OkHttp 4.x are backwards-compatible with the version 3.x.
If this plugin is used as implementation in :buildSrc and OkHttp 4.x is transitively brought in, the other dependencies may break if they use a backwards-incompatible API.

Currently, I'm forcing this plugin to use the version 4.x.

e.g.

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        if (details.requested.group == "com.squareup.okhttp3" && details.requested.name == "okhttp") {
            details.useVersion "4.0.0"
            details.because "Fixes \"com.github.breadmoirai:github-release\" since it doesn't depend on OkHttp 4."
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions