From b5d629dac7b7c50e8d832c0d4c1040c3e82a18f5 Mon Sep 17 00:00:00 2001 From: Vinicius Ferraz Campos Florentino Date: Mon, 5 Jun 2023 17:28:47 -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 6575a6ae588d1..77fd624ca4847 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 @@ -9,13 +9,14 @@ import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.LaunchModeBuildItem; +import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild; import io.quarkus.runtime.LaunchMode; import io.quarkus.vertx.http.deployment.RequireVirtualHttpBuildItem; public class AzureFunctionsHttpProcessor { private static final Logger log = Logger.getLogger(AzureFunctionsHttpProcessor.class); - @BuildStep + @BuildStep(onlyIfNot = NativeOrNativeSourcesBuild.class) public RequireVirtualHttpBuildItem requestVirtualHttp(LaunchModeBuildItem launchMode) { return launchMode.getLaunchMode() == LaunchMode.NORMAL ? RequireVirtualHttpBuildItem.MARKER : null; }