Initialize Infinispan earlier in the build chain (#21171)

Closes #24860

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
This commit is contained in:
Martin Bartoš 2023-12-01 13:58:36 +01:00 committed by GitHub
parent c5bcdbdc3f
commit b8467d80f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<SyntheticBeanBuildItem> syntheticBeanBuildItems, ShutdownContextBuildItem shutdownContext) {
String configFile = getConfigValue("kc.spi-connections-infinispan-quarkus-config-file").getValue();