From 05b9815223dfcc220de7a2ff7670f5060320cba9 Mon Sep 17 00:00:00 2001 From: Francisco Javier Tirado Sarti Date: Tue, 20 Aug 2024 17:14:43 +0200 Subject: [PATCH] Revert "Replace config root by config mapping" This reverts commit bf0e5e67f58d033c0515d8fac6444e5c1a2f7c33. --- .../annotation/scanner/config/AsyncApiRuntimeConfig.java | 5 +++-- .../quarkiverse/asyncapi/generator/AsyncApiConfigGroup.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java b/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java index 76a32dd..6022d2b 100644 --- a/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java +++ b/quarkus-asyncapi-scanner/runtime/src/main/java/io/quarkiverse/asyncapi/annotation/scanner/config/AsyncApiRuntimeConfig.java @@ -6,9 +6,10 @@ import io.quarkiverse.asyncapi.annotation.scanner.AsyncApiFilter; import io.quarkus.runtime.annotations.ConfigDocMapKey; import io.quarkus.runtime.annotations.ConfigItem; -import io.smallrye.config.ConfigMapping; +import io.quarkus.runtime.annotations.ConfigPhase; +import io.quarkus.runtime.annotations.ConfigRoot; -@ConfigMapping(prefix = "asyncapi.annotation.scanner") +@ConfigRoot(name = "asyncapi.annotation.scanner", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED) public class AsyncApiRuntimeConfig { /** diff --git a/quarkus-asyncapi/deployment/src/main/java/io/quarkiverse/asyncapi/generator/AsyncApiConfigGroup.java b/quarkus-asyncapi/deployment/src/main/java/io/quarkiverse/asyncapi/generator/AsyncApiConfigGroup.java index bd37aa7..31d8655 100644 --- a/quarkus-asyncapi/deployment/src/main/java/io/quarkiverse/asyncapi/generator/AsyncApiConfigGroup.java +++ b/quarkus-asyncapi/deployment/src/main/java/io/quarkiverse/asyncapi/generator/AsyncApiConfigGroup.java @@ -4,9 +4,10 @@ import java.util.Optional; import io.quarkus.runtime.annotations.ConfigItem; -import io.smallrye.config.ConfigMapping; +import io.quarkus.runtime.annotations.ConfigPhase; +import io.quarkus.runtime.annotations.ConfigRoot; -@ConfigMapping(prefix = AsyncApiConfigGroup.CONFIG_PREFIX) +@ConfigRoot(name = AsyncApiConfigGroup.CONFIG_PREFIX, phase = ConfigPhase.BUILD_TIME) public class AsyncApiConfigGroup { static final String CONFIG_PREFIX = "asyncapi-generator.codegen";