Skip to content

Commit

Permalink
Output build graph using quarkus.builder.graph-output property
Browse files Browse the repository at this point in the history
Add `BuilderConfig` to eliminate build warnings
  • Loading branch information
gastaldi committed Aug 10, 2023
1 parent ec69508 commit e885d8e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
29 changes: 29 additions & 0 deletions core/runtime/src/main/java/io/quarkus/runtime/BuilderConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package io.quarkus.runtime;

import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

/**
* 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 {

/**
* The path to the graph output file.
*/
@ConfigItem
public Optional<String> graphOutput;

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

}

0 comments on commit e885d8e

Please sign in to comment.