From 5c9a72420890d87b146fafd991c61a9fcddd53dc Mon Sep 17 00:00:00 2001 From: Jianguo Ma Date: Tue, 17 Dec 2024 12:24:49 +0800 Subject: [PATCH] fix issue: AzureAppConfigurationConfigSourceFactory.java cannot find class VertxAsyncHttpClientBuilder in package com.azure.core.http.vertx Signed-off-by: Jianguo Ma --- .../AzureAppConfigurationConfigSourceFactory.java | 4 ++-- .../azure/core/deployment/AzureCoreSupportProcessor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/azure-app-configuration/runtime/src/main/java/io/quarkiverse/azure/app/configuration/AzureAppConfigurationConfigSourceFactory.java b/extensions/azure-app-configuration/runtime/src/main/java/io/quarkiverse/azure/app/configuration/AzureAppConfigurationConfigSourceFactory.java index 2256b26e..28b3a288 100644 --- a/extensions/azure-app-configuration/runtime/src/main/java/io/quarkiverse/azure/app/configuration/AzureAppConfigurationConfigSourceFactory.java +++ b/extensions/azure-app-configuration/runtime/src/main/java/io/quarkiverse/azure/app/configuration/AzureAppConfigurationConfigSourceFactory.java @@ -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; @@ -47,7 +47,7 @@ private Map 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)) diff --git a/internal/core/deployment/src/main/java/io/quarkiverse/azure/core/deployment/AzureCoreSupportProcessor.java b/internal/core/deployment/src/main/java/io/quarkiverse/azure/core/deployment/AzureCoreSupportProcessor.java index cb351839..66c51412 100644 --- a/internal/core/deployment/src/main/java/io/quarkiverse/azure/core/deployment/AzureCoreSupportProcessor.java +++ b/internal/core/deployment/src/main/java/io/quarkiverse/azure/core/deployment/AzureCoreSupportProcessor.java @@ -51,9 +51,9 @@ void runtimeInitializedClasses(BuildProducer 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