Skip to content
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 @@ -21,6 +21,7 @@

import io.quarkus.bootstrap.BootstrapConstants;
import io.quarkus.bootstrap.model.ApplicationModel;
import io.quarkus.gradle.tasks.EffectiveConfig;
import io.quarkus.gradle.tasks.EffectiveConfigProvider;
import io.quarkus.gradle.tasks.QuarkusPluginExtensionView;
import io.quarkus.gradle.tooling.ToolingUtils;
Expand Down Expand Up @@ -63,10 +64,12 @@ public void execute(Task t) {
final Path serializedModel = applicationModelPath.get().getAsFile().toPath();
ApplicationModel applicationModel = ToolingUtils.deserializeAppModel(serializedModel);

SmallRyeConfig config = effectiveProvider().buildEffectiveConfiguration(applicationModel, new HashMap<>())
.getConfig();
EffectiveConfig effectiveConfig = effectiveProvider().buildEffectiveConfiguration(applicationModel,
new HashMap<>());
SmallRyeConfig config = effectiveConfig.getConfig();
config.getOptionalValue(TEST.getProfileKey(), String.class)
.ifPresent(value -> props.put(TEST.getProfileKey(), value));
props.putAll(effectiveConfig.getQuarkusValues());

props.put(BootstrapConstants.SERIALIZED_TEST_APP_MODEL, serializedModel.toString());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public void testBasicMultiModuleBuild() throws Exception {
gradleConfigurationCache(false);
runGradleWrapper(projectDir,
"-Dquarkus.example.name=cheburashka",
"-Dquarkus.example.runtime-name=crocodile",
"-Dquarkus.package.jar.type=mutable-jar",
":example-extension:example-extension-deployment:build",
// this quarkusIntTest will make sure runtime config properties passed as env vars when launching the app are effective
Expand Down
Loading