diff --git a/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java b/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java index a933b63d..f38c15ee 100644 --- a/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java @@ -1,7 +1,9 @@ package io.quarkiverse.quinoa.deployment; import static io.quarkiverse.quinoa.QuinoaRecorder.QUINOA_SPA_ROUTE_ORDER; -import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.*; +import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.getNormalizedIgnoredPathPrefixes; +import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.isDevServerMode; +import static io.quarkiverse.quinoa.deployment.config.QuinoaConfig.isEnabled; import static io.quarkiverse.quinoa.deployment.framework.FrameworkType.overrideConfig; import static io.quarkiverse.quinoa.deployment.packagemanager.PackageManagerRunner.autoDetectPackageManager; import static io.quarkus.deployment.annotations.ExecutionTime.RUNTIME_INIT; @@ -219,7 +221,7 @@ void watchChanges( public void produceGeneratedStaticResources( ConfiguredQuinoaBuildItem configuredQuinoa, BuildProducer generatedStaticResourceProducer, - Optional uiResources) throws IOException { + Optional uiResources) { if (configuredQuinoa != null && configuredQuinoa.resolvedConfig().justBuild()) { LOG.info("Quinoa is in build only mode"); return; @@ -243,7 +245,7 @@ public void runtimeInit( return; } if (uiResources.isPresent() && !uiResources.get().resources().isEmpty()) { - if (configuredQuinoa.resolvedConfig().enableSPARouting()) { + if (Objects.requireNonNull(configuredQuinoa).resolvedConfig().enableSPARouting()) { routes.produce(RouteBuildItem.builder().orderedRoute("/*", QUINOA_SPA_ROUTE_ORDER) .handler(recorder .quinoaSPARoutingHandler(getNormalizedIgnoredPathPrefixes(configuredQuinoa.resolvedConfig()))) @@ -425,4 +427,4 @@ public Path getUIDir() { } } -} +} \ No newline at end of file diff --git a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java index 31065b1d..a6a11ad2 100644 --- a/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java +++ b/runtime/src/main/java/io/quarkiverse/quinoa/QuinoaDevProxyHandler.java @@ -7,7 +7,6 @@ import java.util.List; -import io.vertx.ext.web.client.WebClientOptions; import org.jboss.logging.Logger; import io.vertx.core.AsyncResult; @@ -21,6 +20,7 @@ import io.vertx.ext.web.RoutingContext; import io.vertx.ext.web.client.HttpResponse; import io.vertx.ext.web.client.WebClient; +import io.vertx.ext.web.client.WebClientOptions; class QuinoaDevProxyHandler implements Handler { private static final Logger LOG = Logger.getLogger(QuinoaDevProxyHandler.class);