I use MinIO 8.3.6 in a Gradle-based Spring Boot project. When building the client with MinioClient.builder().endpoint(ENDPOINT).credentials(ACCESS_KEY, SECRET_KEY).build();, the following dependency exception occurs:
Caused by: java.lang.RuntimeException: Unsupported OkHttp library found. Must use okhttp >= 4.8.1
at io.minio.S3Base.<clinit>(S3Base.java:100)
Workaround
You can force okhttp to be used in a newer version (com.squareup.okhttp3:okhttp:4.9.3 works), but the proper version should be satisfied out of the box.
I use MinIO 8.3.6 in a Gradle-based Spring Boot project. When building the client with
MinioClient.builder().endpoint(ENDPOINT).credentials(ACCESS_KEY, SECRET_KEY).build();, the following dependency exception occurs:Workaround
You can force okhttp to be used in a newer version (
com.squareup.okhttp3:okhttp:4.9.3works), but the proper version should be satisfied out of the box.