Skip to content

Commit

Permalink
Convert newly added config to @ConfigMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Aug 11, 2023
1 parent cd72dd7 commit b7f641c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> graphOutput;
Optional<String> graphOutput();

/**
* Whether to log the cause of a conflict.
*/
@ConfigItem
public Optional<Boolean> logConflictCause;
Optional<Boolean> logConflictCause();

}

0 comments on commit b7f641c

Please sign in to comment.