diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/AbstractQuarkusExtension.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/AbstractQuarkusExtension.java index 58976d97f65a9..e717ca883d7da 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/AbstractQuarkusExtension.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/AbstractQuarkusExtension.java @@ -80,7 +80,7 @@ private BaseConfig buildBaseConfig() { // Used to handle the (deprecated) buildNative and testNative tasks. project.getExtensions().getExtraProperties().getProperties().forEach((k, v) -> { - if (k.startsWith("quarkus.")) { + if (k.startsWith("quarkus.") || k.startsWith("platform.quarkus.")) { forcedPropertiesProperty.put(k, v.toString()); } }); @@ -126,7 +126,7 @@ protected EffectiveConfig buildEffectiveConfiguration(ResolvedDependency appArti // Used to handle the (deprecated) buildNative and testNative tasks. project.getExtensions().getExtraProperties().getProperties().forEach((k, v) -> { - if (k.startsWith("quarkus.")) { + if (k.startsWith("quarkus.") || k.startsWith("platform.quarkus.")) { forcedPropertiesProperty.put(k, v.toString()); } }); 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 f5f75c86681ed..c6d4f6b160d3b 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 @@ -251,6 +251,9 @@ void generateBuild() { for (String key : config.getMapKeys("quarkus").values()) { values.put(key, config.getConfigValue(key).getValue()); } + for (String key : config.getMapKeys("platform.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/QuarkusTask.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java index 17b4822d9e923..11060269f5e54 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusTask.java @@ -19,7 +19,7 @@ import io.quarkus.utilities.OS; public abstract class QuarkusTask extends DefaultTask { - private static final List WORKER_BUILD_FORK_OPTIONS = List.of("quarkus."); + private static final List WORKER_BUILD_FORK_OPTIONS = List.of("quarkus.", "platform.quarkus."); private final transient QuarkusPluginExtension extension; protected final File projectDir;