Skip to content

Commit

Permalink
Fix check for dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Jan 29, 2024
1 parent 93c2c94 commit 807b742
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 807b742

Please sign in to comment.