avaje / avaje-config

Application configuration / properties loading for JVM applications
https://avaje.io/config
Apache License 2.0
50 stars 8 forks source link

load.properties parameter should load from jar resources #38

Closed SentryMan closed 1 year ago

SentryMan commented 1 year ago

I want to be able to load env specific props based on profile. Say I have an application properties file like this

some.common.prop=true
load.properties=src/main/resources/application-${profile:local}.properties

In the current state, files are only supported, so when I upload my jar to my server it doesn't pull the props because there is no such folder.

I'd like something like this to work as well as standard path based config

some.common.prop=true
load.properties=application-${profile:local}.properties
SentryMan commented 1 year ago

it seems that 2.4 is still not available on mvn central.

rbygrave commented 1 year ago

Yes, it didn't get released from staging (my bad) - I've done that now. I'll change it to auto-release from staging.

SentryMan commented 1 year ago

It's still not available.

rbygrave commented 1 year ago

It looks to be there?? - https://repo1.maven.org/maven2/io/avaje/avaje-config/2.4/

On Mon, 7 Nov 2022 at 10:17, Josiah Noel @.***> wrote:

It's still not available.

— Reply to this email directly, view it on GitHub https://github.com/avaje/avaje-config/issues/38#issuecomment-1304895900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABTATJAH2VFVTJQSNRZDHLWHAG4PANCNFSM6AAAAAARVRDW4Q . You are receiving this because you modified the open/close state.Message ID: @.***>

SentryMan commented 1 year ago

yeah it's good now, thanks