diff --git a/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java b/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java index 820e66dc3e81a..0578ba0c4bc34 100644 --- a/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java +++ b/core/builder/src/main/java/io/quarkus/builder/BuildChainBuilder.java @@ -30,7 +30,7 @@ */ public final class BuildChainBuilder { - private static final String GRAPH_OUTPUT = System.getProperty("jboss.builder.graph-output"); + private static final String GRAPH_OUTPUT = System.getProperty("quarkus.builder.graph-output"); static final boolean LOG_CONFLICT_CAUSING = Boolean.getBoolean("quarkus.builder.log-conflict-cause"); private final BuildStepBuilder finalStep; diff --git a/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java b/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java new file mode 100644 index 0000000000000..b23b2cbe9ebde --- /dev/null +++ b/core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java @@ -0,0 +1,28 @@ +package io.quarkus.runtime; + +import java.util.Optional; + +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 + */ +@ConfigMapping(prefix = "quarkus.builder") +@ConfigRoot(phase = ConfigPhase.RUN_TIME) +public interface BuilderConfig { + + /** + * Dump the graph output to a file. This is useful for debugging. + */ + Optional graphOutput(); + + /** + * Whether to log the cause of a conflict. + */ + Optional logConflictCause(); + +}