From b8467d80f1518f57486846f810c7815099472611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Barto=C5=A1?= Date: Fri, 1 Dec 2023 13:58:36 +0100 Subject: [PATCH] Initialize Infinispan earlier in the build chain (#21171) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #24860 Signed-off-by: Martin Bartoš --- .../java/org/keycloak/quarkus/deployment/CacheBuildSteps.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/CacheBuildSteps.java b/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/CacheBuildSteps.java index bdc3638553..7675d915e9 100644 --- a/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/CacheBuildSteps.java +++ b/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/CacheBuildSteps.java @@ -43,8 +43,8 @@ import io.quarkus.deployment.builditem.ShutdownContextBuildItem; public class CacheBuildSteps { - @Consume(KeycloakSessionFactoryPreInitBuildItem.class) - @Record(ExecutionTime.RUNTIME_INIT) + @Consume(ConfigBuildItem.class) + @Record(ExecutionTime.STATIC_INIT) @BuildStep void configureInfinispan(KeycloakRecorder recorder, BuildProducer syntheticBeanBuildItems, ShutdownContextBuildItem shutdownContext) { String configFile = getConfigValue("kc.spi-connections-infinispan-quarkus-config-file").getValue();