diff --git a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java index c935d2dd323e0..d0a2925aca491 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/configuration/BuildTimeConfigurationReader.java @@ -474,6 +474,10 @@ ReadResult run() { } } + // Remove properties coming from the Build System, because most likely they are used in build scripts + config.getConfigSource("PropertiesConfigSource[source=Build system]").ifPresent( + configSource -> unknownBuildProperties.removeAll(configSource.getPropertyNames())); + // ConfigMappings for (ConfigClassWithPrefix mapping : buildTimeVisibleMappings) { objectsByClass.put(mapping.getKlass(), config.getConfigMapping(mapping.getKlass(), mapping.getPrefix()));