Skip to content

Commit

Permalink
requestVirtualHttp only if not native
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusfcf committed May 29, 2023
1 parent 3e5167e commit 1122336
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -32,7 +33,7 @@ public LegacyJarRequiredBuildItem forceLegacy(List<FeatureBuildItem> features, P
return new LegacyJarRequiredBuildItem();
}

@BuildStep
@BuildStep(onlyIfNot = NativeOrNativeSourcesBuild.class)
public RequireVirtualHttpBuildItem requestVirtualHttp(LaunchModeBuildItem launchMode) {
return launchMode.getLaunchMode() == LaunchMode.NORMAL ? RequireVirtualHttpBuildItem.MARKER : null;
}
Expand Down

0 comments on commit 1122336

Please sign in to comment.