You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain application.properties need to differ between non-native and native runs.
For example:
in non-native mode it's ok to overwrite and configure optaplanner-accessor-type=REFLECTION, but in native mode, that will crash
in a demo application, it's ok to use an in memory H2 database (so the user doesn't have to start a database server), but in native mode in memory H2 doesn't work (so the user has to start a database server anyway).
Currently quarkus supports the quarkus profile %prod (and %test). It already uses prod for all native builds (test or not). Resolve native by - for native builds - giving it priority over prod (falling back on prod).
I believe we don't require an extra LaunchMode to support this use case.
The profile used to build the native image can be easily overridden (even as a single maven property in the maven profile that sets up the native build). Multiple profiles can even be used to build the app, and then choose which one to use: https://quarkus.io/guides/config-reference#multiple-profiles. For instance, it can use a build profile of prod,native, and then the native runtime can provide an application-native.properties to have priority over everything else.
For now, I'm closing this. If there is a use case that the current system is not able to handle, then we can reevaluate.
Certain application.properties need to differ between non-native and native runs.
For example:
Currently quarkus supports the quarkus profile
%prod
(and%test
). It already usesprod
for all native builds (test or not). Resolvenative
by - for native builds - giving it priority overprod
(falling back on prod).For example, given this application.properties:
Clean, simple, intuitive.
The text was updated successfully, but these errors were encountered: