Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to load additional config properties files at build time #12419

Closed
xtaixe opened this issue Sep 30, 2020 · 3 comments · Fixed by #13745
Closed

Make it easier to load additional config properties files at build time #12419

xtaixe opened this issue Sep 30, 2020 · 3 comments · Fixed by #13745
Assignees
Labels
area/config kind/enhancement New feature or request
Milestone

Comments

@xtaixe
Copy link

xtaixe commented Sep 30, 2020

Description
We have (generated) additional config properties files that we would like to load like application.properties. It would be really nice o be able to load them without having to define a ConfigSource and doing the SPI registration, etc.

See discussion at https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Additional.20config.20properties.20at.20build.20time

Implementation ideas
I guess some options are:

  • Something similar to Spring's @PropertySource
  • Define which additional files to load in a property in application.properties
@xtaixe xtaixe added the kind/enhancement New feature or request label Sep 30, 2020
@radcortez
Copy link
Member

Just to clarify, this is for runtime, not build time, right? We need to be careful at build time since the resources may not be available at runtime, since the class path may be different.

@xtaixe
Copy link
Author

xtaixe commented Oct 22, 2020

@radcortez build time would work for our current use case, but runtime should be fine too. Not sure how resources work with Quarkus/GraalVM, but would be nice to not have to define additional parameters when building/running if the resource is already defined somewhere.

@radcortez
Copy link
Member

Ok, I may have some ideas. I'll have to prototype and experiment with them first. I'll update later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/config kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants