From 1a9d16f6548b6501403b03309e7ec7a6aca06063 Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Thu, 12 Oct 2023 09:58:28 +0200 Subject: [PATCH] Block web deps on dev too --- .../web/bundler/deployment/WebBundlerProcessor.java | 3 +-- .../src/test/java/io/quarkiverse/web/bundler/it/WebTest.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebBundlerProcessor.java b/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebBundlerProcessor.java index 367617b..e6a28db 100644 --- a/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebBundlerProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebBundlerProcessor.java @@ -58,7 +58,6 @@ import io.quarkus.arc.deployment.AdditionalBeanBuildItem; import io.quarkus.arc.deployment.SyntheticBeanBuildItem; import io.quarkus.builder.BuildException; -import io.quarkus.deployment.IsNormal; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.annotations.Record; @@ -372,7 +371,7 @@ void initBundler( additionalBeans.produce(new AdditionalBeanBuildItem(Bundle.class)); } - @BuildStep(onlyIf = IsNormal.class) + @BuildStep @Record(STATIC_INIT) void webDepBlocker(WebBundlerConfig config, BuildProducer routes, WebDependenciesBlockerRecorder recorder) { if (!config.dependencies().serve()) { diff --git a/integration-tests/src/test/java/io/quarkiverse/web/bundler/it/WebTest.java b/integration-tests/src/test/java/io/quarkiverse/web/bundler/it/WebTest.java index 40e26d9..fccafbf 100644 --- a/integration-tests/src/test/java/io/quarkiverse/web/bundler/it/WebTest.java +++ b/integration-tests/src/test/java/io/quarkiverse/web/bundler/it/WebTest.java @@ -4,8 +4,6 @@ import java.net.URL; -import io.quarkiverse.playwright.InjectPlaywright; -import io.quarkiverse.playwright.WithPlaywright; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -14,6 +12,8 @@ import com.microsoft.playwright.Response; import com.microsoft.playwright.assertions.PlaywrightAssertions; +import io.quarkiverse.playwright.InjectPlaywright; +import io.quarkiverse.playwright.WithPlaywright; import io.quarkus.test.common.http.TestHTTPResource; import io.quarkus.test.junit.QuarkusTest;