Config: OS and CPU architecture qualifiers for configuration properties (@windows., @aarch64.)
Author: Eng-FouadCreated Oct 1, 2026Updated Oct 1, 2026
Labelskind/enhancementarea/configenv/windows
Description
Quarkus picks configuration values by launch mode automatically (%dev, %test, %prod), but there is no built-in way to pick a value by the operating system or CPU architecture the application is running on. I'd like to propose a way to optionally specify @<os>. / @<arch>. key qualifiers, e.g. @windows.app.data-dir=....
Use cases
- One artifact or one repository, several OSes. I build desktop apps with Quarkus Desktop. A JVM build is a single jar that runs on Windows, Linux and macOS, and things like the data directory, the log location and the directory holding native libraries differ per OS. The same applies to a team whose developers use different OSes and share one
application.propertiesfor dev mode and tests. - Build-host settings such as
quarkus.native.container-build=true, which is needed on macOS/Windows hosts but not on Linux with GraalVM installed.
Proposal
@windows.app.data-dir=${LOCALAPPDATA}/MyApp
@macos.app.data-dir=${user.home}/Library/Application Support/MyApp
# prod AND windows/macos; dev and test keep the default log file on every OS
%[email protected]=${LOCALAPPDATA}/MyApp/logs/app.log
%[email protected]=${user.home}/Library/Logs/MyApp/app.log
@macos.quarkus.native.container-build=true- Forms:
@<os>.,@<arch>.,@<os>-<arch>., optionally after%profile.. Lists (@linux,macos.) could come later. - Values: OS
windows,linux,macos; archx64,aarch64. Less common platforms get fixed lower-case tokens (e.g.freebsd,ppc64le,s390x), and anything unknown isother. The arch is the JVM's or executable's, not the hardware's (an x64 JDK under Rosetta reportsx64), which is what loading native libraries needs.
Implementation ideas
No response
Source: quarkusio/quarkus