Skip to content

Commit

Permalink
Merge pull request #45637 from gsmet/gradle-fix-platform-properties
Browse files Browse the repository at this point in the history
Gradle - Correctly pass platform.quarkus.* properties
  • Loading branch information
gsmet authored Jan 16, 2025
2 parents 7926cc7 + 2ed6293 commit 4b8edd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
});
Expand Down Expand Up @@ -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());
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import io.quarkus.utilities.OS;

public abstract class QuarkusTask extends DefaultTask {
private static final List<String> WORKER_BUILD_FORK_OPTIONS = List.of("quarkus.");
private static final List<String> WORKER_BUILD_FORK_OPTIONS = List.of("quarkus.", "platform.quarkus.");

private final transient QuarkusPluginExtension extension;
protected final File projectDir;
Expand Down

0 comments on commit 4b8edd9

Please sign in to comment.