Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output build graph using quarkus.builder.graph-output property #35299

Merged
merged 2 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
gastaldi marked this conversation as resolved.
Show resolved Hide resolved
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();

}