Skip to content

Commit

Permalink
Upgrade to minio 8.2.1 in Camel 3.10 breaks Quarkiverse Minio and Min…
Browse files Browse the repository at this point in the history
…ioClientProducer in our test apache#2503
  • Loading branch information
ppalaga committed Jun 6, 2021
1 parent abe4a53 commit 4382c73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@
*/
package org.apache.camel.quarkus.component.minio.it;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Named;
import javax.inject.Singleton;

import io.minio.MinioClient;
import org.eclipse.microprofile.config.ConfigProvider;

public class MinioClientProducer {

@Produces
@ApplicationScoped
@Singleton
@Named("minioClient")
public MinioClient produceMinioClient() {
return MinioClient.builder()
.endpoint("http://" + ConfigProvider.getConfig().getValue("minio.server.host", String.class),
ConfigProvider.getConfig().getValue("minio.server.port", Integer.class), false)
.endpoint(ConfigProvider.getConfig().getValue("quarkus.minio.url", String.class))
.credentials(MinioResource.SERVER_ACCESS_KEY, MinioResource.SERVER_SECRET_KEY)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public Map<String, String> start() {
String host = minioServer.getHost();

return CollectionHelper.mapOf(
"minio.server.host", host,
"minio.server.port", port);
"quarkus.minio.url", String.format("http://%s:%s", host, port));
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<cassandra-quarkus.version>1.0.1</cassandra-quarkus.version><!-- https://repo1.maven.org/maven2/com/datastax/oss/quarkus/cassandra-quarkus-bom/ -->
<quarkiverse.freemarker.version>0.2.7</quarkiverse.freemarker.version><!-- https://repo1.maven.org/maven2/io/quarkiverse/freemarker/quarkus-freemarker-parent/ -->
<quarkiverse-minio.version>0.2.2</quarkiverse-minio.version><!-- https://repo1.maven.org/maven2/io/quarkiverse/minio/quarkus-minio-parent/ -->
<quarkiverse-minio.version>0.2.3</quarkiverse-minio.version><!-- https://repo1.maven.org/maven2/io/quarkiverse/minio/quarkus-minio-parent/ -->
<quarkus.version>2.0.0.CR2</quarkus.version><!-- https://repo1.maven.org/maven2/io/quarkus/quarkus-bom/ -->
<quarkus-google-cloud.version>0.6.0</quarkus-google-cloud.version><!-- https://repo1.maven.org/maven2/io/quarkiverse/googlecloudservices/quarkus-google-cloud-services-bom/ -->
<quarkus-hazelcast-client.version>1.2.0</quarkus-hazelcast-client.version><!-- https://repo1.maven.org/maven2/com/hazelcast/quarkus-hazelcast-client-bom/ -->
Expand Down Expand Up @@ -101,7 +101,7 @@
<kudu.version>${kudu-version}</kudu.version>
<kotlin.version>1.4.32</kotlin.version><!-- @sync io.quarkus:quarkus-bom:${quarkus.version} dep:org.jetbrains.kotlin:kotlin-stdlib -->
<netty3.version>${netty3-version}</netty3.version><!-- Spark -->
<minio.version>8.1.0</minio.version><!-- Hardcoded as a workaround for https://github.com/apache/camel-quarkus/issues/2503 otherwise should be kept in sync with quarkiverse-minio and camel -->
<minio.version>${minio-version}</minio.version><!-- Keep in sync with quarkiverse-minio and Camel, preferring Camel assuming that it is more likely to be up to date -->
<mvel2.version>${mvel-version}</mvel2.version>
<nimbus-jose-jwt.version>4.41.1</nimbus-jose-jwt.version><!-- Mess in hdfs transitive deps -->
<okhttp.version>${squareup-okhttp-version}</okhttp.version>
Expand Down

0 comments on commit 4382c73

Please sign in to comment.