[MAGNOLIA-9219] Provide MicroProfile ConfigSources for webapp WEB-INF resources Created: 06/Dec/23  Updated: 09/Feb/24  Resolved: 09/Feb/24

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Task Priority: Neutral
Reporter: Mikaël Geljić Assignee: Antonín Juran
Resolution: Fixed Votes: 0
Labels: dx-core-6.3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MGNLCE-381 Provide a default MicroProfile config... Closed
dependency
is depended upon by PUBLISHING-318 Remove default receiver config from m... In Progress
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes
Documentation update required:
Yes
Epic Link: MicroProfile Config
Work Started:
Approved:
Yes

 Description   

so that we can ship reasonable default with the new MP approach within webapps, while MP allows customers to override config easily from external sources.

  • WEB-INF should be able to override META-INF from modules (100)
  • external files via smallrye.config.locations should override WEB-INF (at least)
    • external locations sources use the same ordinal of the source that found the smallrye.config.locations configuration property. For instance, if smallrye.config.locations is set as a system property, then all loaded sources have their ordinals set to 400 (system properties use 400 as their ordinal).
      https://smallrye.io/smallrye-config/3.5.4/config-sources/locations/

by default SmallRye looks into jar files under META-INF/microprofile-config.properties
see smallrye docs for how to add configuration sources
smallrye.io/smallrye-config/Main/config/getting-started/


Generated at Mon Feb 12 04:39:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.