From f288323816a2bd2d62ee345022d829823c50e7a3 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Mon, 28 Mar 2022 14:41:32 +0100 Subject: [PATCH] Ignore build time properties warnings coming from the build system --- .../configuration/BuildTimeConfigurationReader.java | 4 ++++ 1 file changed, 4 insertions(+) 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()));