Quarkus Extension - Conditional Configuration #34691
Unanswered
akil-rails
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have one extension with 5 capabilities, each of which has it's own configuration (https://quarkus.io/guides/writing-extensions#configuration).
There are multiple projects that use this extension, and some need all 5 and some need just 1 or 2 of these capabilities.
Currently, each project has to specify the configuration of all 5 capabilities, irrespective of whether they use it or not.
How do I make the configuration optional? If a project wants to use a capability, it should provide the configuration, and if it doesn't then the configuration is not needed to be provided ( I can't use @WithDefault because there aren't any defaults )
Is there a pattern to implement opt-in of capabilities from a single extension?
Beta Was this translation helpful? Give feedback.
All reactions