diff --git a/core/runtime/src/main/java/io/quarkus/runtime/configuration/DeprecatedRuntimePropertiesRecorder.java b/core/runtime/src/main/java/io/quarkus/runtime/configuration/DeprecatedRuntimePropertiesRecorder.java index 6ff8eb37c3f82..994e2fbd5c0dc 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/configuration/DeprecatedRuntimePropertiesRecorder.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/configuration/DeprecatedRuntimePropertiesRecorder.java @@ -7,6 +7,7 @@ import org.jboss.logging.Logger; import io.quarkus.runtime.annotations.Recorder; +import io.smallrye.config.SmallRyeConfig; @Recorder public class DeprecatedRuntimePropertiesRecorder { @@ -17,6 +18,11 @@ public void reportDeprecatedProperties(Set deprecatedRuntimeProperties) Config config = ConfigProvider.getConfig(); for (String property : config.getPropertyNames()) { if (deprecatedRuntimeProperties.contains(property)) { + String configSourceName = ((SmallRyeConfig) config).getConfigValue(property).getConfigSourceName(); + // this condition can be removed when support of the @ConfigRoot annotation on classes is removed + if ("DefaultValuesConfigSource".equals(configSourceName)) { + continue; + } log.warnf("The '%s' config property is deprecated and should not be used anymore", property); } }