From 807b742d26c49219241db472a835f659650bae89 Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Fri, 26 Jan 2024 17:25:01 +0100 Subject: [PATCH] Fix check for dev mode --- .../web/bundler/deployment/WebDependenciesScannerProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebDependenciesScannerProcessor.java b/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebDependenciesScannerProcessor.java index 3f52fcc..8b98b2e 100644 --- a/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebDependenciesScannerProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/WebDependenciesScannerProcessor.java @@ -46,7 +46,7 @@ WebDependenciesBuildItem collectDependencies(LaunchModeBuildItem launchMode, } private void checkScope(LaunchModeBuildItem launchMode, ResolvedDependency d, WebBundlerConfig config) { - if (!launchMode.isTest() && config.dependencies().compileOnly() && d.isRuntimeCp()) { + if (!launchMode.getLaunchMode().isDevOrTest() && config.dependencies().compileOnly() && d.isRuntimeCp()) { throw new ConfigurationException( ("The Web Bundler is configured to only include compileOnly web dependencies, but %s is set as runtime." + " Use a compile only scope (e.g. provided) or set quarkus.web-bundler.dependencies.compile-only=false to allow runtime web dependencies.")