Skip to content

Broken okhttp transitive dependency in minio 8.6.0 #1670

Description

@devtobi

The new io.minio.minio java dependency version 8.6.0 upgraded com.squareup.okhttp3.okhttp transitive dependency from 4.12.0 to 5.1.0.
However this version seems broken, as its jar does not contain any Java class files. (see screenshot in my IDE)

Image

In my case thus compilation thus fails because the HttpUrl class is not found and I call the .endpoint() method of the MinioClient.Builder. leading to the error:

Class file for okhttp3.HttpUrl not found.

I checked the release notes for okhttp 5.x and it looks like the artifacts where split into dedicated JVM / Android versions. Maybe this is the root of the issue here? (see https://square.github.io/okhttp/changelogs/changelog/#version-500)

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