Skip to content

Commit

Permalink
fix issue: AzureAppConfigurationConfigSourceFactory.java cannot find …
Browse files Browse the repository at this point in the history
…class VertxAsyncHttpClientBuilder in package com.azure.core.http.vertx

Signed-off-by: Jianguo Ma <jiangma@microsoft.com>
  • Loading branch information
majguo committed Dec 17, 2024
1 parent 51f02e4 commit 5c9a724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.eclipse.microprofile.config.spi.ConfigSource;

import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.vertx.VertxAsyncHttpClientBuilder;
import com.azure.core.http.vertx.VertxHttpClientBuilder;
import com.azure.core.util.ClientOptions;
import com.azure.data.appconfiguration.ConfigurationClient;
import com.azure.data.appconfiguration.ConfigurationClientBuilder;
Expand Down Expand Up @@ -47,7 +47,7 @@ private Map<String, String> getAzureAppConfiguration(final AzureAppConfiguration

// We cannot use the Quarkus Vert.x instance, because the configuration executes before starting Vert.x
Vertx vertx = Vertx.vertx();
VertxAsyncHttpClientBuilder httpClientBuilder = new VertxAsyncHttpClientBuilder().vertx(vertx);
VertxHttpClientBuilder httpClientBuilder = new VertxHttpClientBuilder().vertx(vertx);

ConfigurationClientBuilder clientBuilder = new ConfigurationClientBuilder()
.clientOptions(new ClientOptions().setApplicationId(AzureQuarkusIdentifier.AZURE_QUARKUS_APP_CONFIGURATION))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ void runtimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> r
runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("io.netty.internal.tcnative.SSL"));
runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("io.netty.util.concurrent.GlobalEventExecutor"));
runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(
"com.azure.core.http.vertx.VertxAsyncHttpClientProvider$GlobalVertxHttpClient"));
"com.azure.core.http.vertx.VertxHttpClientProvider$GlobalVertxHttpClient"));
runtimeInitializedClasses.produce(
new RuntimeInitializedClassBuildItem("com.azure.core.http.vertx.VertxAsyncHttpClientBuilder$DefaultVertx"));
new RuntimeInitializedClassBuildItem("com.azure.core.http.vertx.VertxHttpClientBuilder$DefaultVertx"));
}

@BuildStep
Expand Down

0 comments on commit 5c9a724

Please sign in to comment.