From 2aef8e95638ee9006ade04cefbbe3888878b4856 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Fri, 11 Aug 2023 10:37:44 +0200 Subject: [PATCH] CLI: add an option to generate a simple build report - resolves #29174 Co-authored-by: Guillaume Smet --- .../io/quarkus/deployment/DebugConfig.java | 6 + devtools/cli/pom.xml | 17 +++ .../src/main/java/io/quarkus/cli/Build.java | 12 +- .../main/java/io/quarkus/cli/BuildReport.java | 82 ++++++++++++ .../io/quarkus/cli/common/BuildOptions.java | 6 +- .../main/resources/templates/buildReport.html | 120 ++++++++++++++++++ 6 files changed, 241 insertions(+), 2 deletions(-) create mode 100644 devtools/cli/src/main/java/io/quarkus/cli/BuildReport.java create mode 100644 devtools/cli/src/main/resources/templates/buildReport.html diff --git a/core/deployment/src/main/java/io/quarkus/deployment/DebugConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/DebugConfig.java index bdacdd8419c53..e75f81adc7057 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/DebugConfig.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/DebugConfig.java @@ -39,4 +39,10 @@ public class DebugConfig { */ @ConfigItem Optional generatedSourcesDir; + + /** + * If set to true then dump the build metrics to a JSON file in the build directory. + */ + @ConfigItem(defaultValue = "false") + boolean dumpBuildMetrics; } diff --git a/devtools/cli/pom.xml b/devtools/cli/pom.xml index 9ba49274bea8b..9bf60d3297ec7 100644 --- a/devtools/cli/pom.xml +++ b/devtools/cli/pom.xml @@ -42,6 +42,10 @@ io.quarkus quarkus-netty + + io.quarkus + quarkus-qute +