diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java b/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java index 6f60dc9057760..c540ab7d0438a 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ExtensionLoader.java @@ -128,8 +128,7 @@ private static boolean isRecorder(AnnotatedElement element) { * @throws ClassNotFoundException if a build step class is not found */ public static Consumer loadStepsFrom(ClassLoader classLoader, Properties buildSystemProps, - ApplicationModel appModel, LaunchMode launchMode, DevModeType devModeType, - Consumer configCustomizer) + ApplicationModel appModel, LaunchMode launchMode, DevModeType devModeType) throws IOException, ClassNotFoundException { // populate with all known types List> roots = new ArrayList<>(); @@ -167,9 +166,6 @@ public static Consumer loadStepsFrom(ClassLoader classLoader, builder.withSources(ds1, ds2, platformConfigSource, pcs); } - if (configCustomizer != null) { - configCustomizer.accept(builder); - } final SmallRyeConfig src = builder.build(); // install globally diff --git a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java index 832d8b3187eaa..f1db8cfd53339 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/QuarkusAugmentor.java @@ -57,7 +57,6 @@ public class QuarkusAugmentor { private final Path targetDir; private final ApplicationModel effectiveModel; private final String baseName; - private final Consumer configCustomizer; private final boolean rebuild; private final boolean auxiliaryApplication; private final Optional auxiliaryDevModeType; @@ -76,7 +75,6 @@ public class QuarkusAugmentor { this.targetDir = builder.targetDir; this.effectiveModel = builder.effectiveModel; this.baseName = builder.baseName; - this.configCustomizer = builder.configCustomizer; this.deploymentClassLoader = builder.deploymentClassLoader; this.rebuild = builder.rebuild; this.devModeType = builder.devModeType; @@ -106,7 +104,7 @@ public BuildResult run() throws Exception { //in additional stuff from the deployment leaking in, this is unlikely but has a bit of a smell. ExtensionLoader.loadStepsFrom(deploymentClassLoader, buildSystemProperties == null ? new Properties() : buildSystemProperties, - effectiveModel, launchMode, devModeType, configCustomizer) + effectiveModel, launchMode, devModeType) .accept(chainBuilder); Thread.currentThread().setContextClassLoader(classLoader); @@ -202,7 +200,6 @@ public static final class Builder { ApplicationModel effectiveModel; String baseName = "quarkus-application"; - Consumer configCustomizer; ClassLoader deploymentClassLoader; DevModeType devModeType; boolean test; @@ -341,10 +338,5 @@ public Builder setDeploymentClassLoader(ClassLoader deploymentClassLoader) { this.deploymentClassLoader = deploymentClassLoader; return this; } - - public Builder setConfigCustomizer(Consumer configCustomizer) { - this.configCustomizer = configCustomizer; - return this; - } } }