I'm using quarkus profile-aware files to set different property values for different profiles:
- application.properties
quarkus.http.port=9090 # quarkus.http.port is just an example property
- application-staging.properties
quarkus.http.port=9190
This works if I don't enable native-image compilation: if QUARKUS_PROFILE environment variable is staging, Quarkus will pick up the correct property value (i.e. 9190).
However, when I do native compilation (quarkus.package.type=native) it seems quarkus is using the default value (9090); the profile-aware file is ignored by the native binary. "Profile in the property name" still works (i.e. %staging.quarkus.http.port=9190 in application.properties).
Is this the expected behavior? Or what am I missing for the native compilation to work with profile-aware files?