From b7f641cd74f9d7b42bcff44ab9a96676c4b037e7 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 11 Aug 2023 14:05:34 +0200 Subject: [PATCH] Convert newly added config to @ConfigMapping --- .../main/java/io/quarkus/runtime/BuilderConfig.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java index 1af640d9ed936..b23b2cbe9ebde 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java @@ -2,28 +2,27 @@ import java.util.Optional; -import io.quarkus.runtime.annotations.ConfigItem; import io.quarkus.runtime.annotations.ConfigPhase; import io.quarkus.runtime.annotations.ConfigRoot; +import io.smallrye.config.ConfigMapping; /** * This configuration class is here to avoid warnings when using {@code -Dquarkus.builder.=...}. * * @see io.quarkus.builder.BuildChainBuilder */ -@ConfigRoot(name = "builder", phase = ConfigPhase.RUN_TIME) -public class BuilderConfig { +@ConfigMapping(prefix = "quarkus.builder") +@ConfigRoot(phase = ConfigPhase.RUN_TIME) +public interface BuilderConfig { /** * Dump the graph output to a file. This is useful for debugging. */ - @ConfigItem - public Optional graphOutput; + Optional graphOutput(); /** * Whether to log the cause of a conflict. */ - @ConfigItem - public Optional logConflictCause; + Optional logConflictCause(); }