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

(cherry picked from commit cd72dd7)
  • Loading branch information
gastaldi authored and gsmet committed Aug 15, 2023
1 parent b5b6233 commit 9276555
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 {

/**
* Dump the graph output to a file. This is useful for debugging.
*/
@ConfigItem
public Optional<String> graphOutput;

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

}

0 comments on commit 9276555

Please sign in to comment.