diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuildTask.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuildTask.java index 827ace86ae845..90fb5864a4f30 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuildTask.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusBuildTask.java @@ -211,8 +211,9 @@ void generateBuild() { SmallRyeConfig config = extension().buildEffectiveConfiguration(appModel.getAppArtifact()).getConfig(); Map quarkusProperties = Expressions.withoutExpansion(() -> { Map values = new HashMap<>(); - config.getValues("quarkus", String.class, String.class) - .forEach((key, value) -> values.put("quarkus." + key, value)); + for (String key : config.getMapKeys("quarkus").values()) { + values.put(key, config.getConfigValue(key).getValue()); + } return values; }); diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusShowEffectiveConfig.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusShowEffectiveConfig.java index 2115ee6ee6ad6..c0a512d13d410 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusShowEffectiveConfig.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusShowEffectiveConfig.java @@ -8,7 +8,9 @@ import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Properties; import java.util.stream.Collectors; @@ -51,10 +53,15 @@ public void dumpEffectiveConfiguration() { List sourceNames = new ArrayList<>(); config.getConfigSources().forEach(configSource -> sourceNames.add(configSource.getName())); - String quarkusConfig = config.getValues("quarkus", String.class, String.class) + Map values = new HashMap<>(); + for (String key : config.getMapKeys("quarkus").values()) { + values.put(key, config.getConfigValue(key).getValue()); + } + + String quarkusConfig = values .entrySet() .stream() - .map(e -> format("quarkus.%s=%s", e.getKey(), e.getValue())).sorted() + .map(e -> format("%s=%s", e.getKey(), e.getValue())).sorted() .collect(Collectors.joining("\n ", "\n ", "\n")); getLogger().lifecycle("Effective Quarkus configuration options: {}", quarkusConfig);