From 27e35a89ee22c703997fdc5bdeda5ac8f3c6a72a Mon Sep 17 00:00:00 2001 From: Vinicius Ferraz Campos Florentino Date: Mon, 29 May 2023 16:32:06 -0300 Subject: [PATCH] requestVirtualHttp only if not native --- .../resteasy/deployment/AzureFunctionsHttpProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java b/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java index c8e0f1f65169d9..2319de96dd7c6d 100644 --- a/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java +++ b/extensions/azure-functions-http/deployment/src/main/java/io/quarkus/azure/functions/resteasy/deployment/AzureFunctionsHttpProcessor.java @@ -12,6 +12,7 @@ import io.quarkus.deployment.builditem.LaunchModeBuildItem; import io.quarkus.deployment.pkg.PackageConfig; import io.quarkus.deployment.pkg.builditem.LegacyJarRequiredBuildItem; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.runtime.LaunchMode; import io.quarkus.vertx.http.deployment.RequireVirtualHttpBuildItem; @@ -32,7 +33,7 @@ public LegacyJarRequiredBuildItem forceLegacy(List features, P return new LegacyJarRequiredBuildItem(); } - @BuildStep + @BuildStep(onlyIfNot = NativeOrNativeSourcesBuild.class) public RequireVirtualHttpBuildItem requestVirtualHttp(LaunchModeBuildItem launchMode) { return launchMode.getLaunchMode() == LaunchMode.NORMAL ? RequireVirtualHttpBuildItem.MARKER : null; }