Skip to content

Commit

Permalink
Merge pull request #35299 from gastaldi/graph_output
Browse files Browse the repository at this point in the history
Output build graph using `quarkus.builder.graph-output` property
  • Loading branch information
gastaldi authored Aug 11, 2023
2 parents 64c39a9 + b7f641c commit 14763e3
Show file tree
Hide file tree
Showing 2 changed files with 29 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
28 changes: 28 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,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<String> graphOutput();

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

}

0 comments on commit 14763e3

Please sign in to comment.