Configuration Reference

Desktop AWT

Configuration property fixed at build time - All other configuration properties are overridable at runtime

Configuration property

Type

Default

Whether the native executable is DPI aware, as a JVM started by the java launcher is.

When enabled, the sun.java2d.dpiaware system property defaults to true in the native executable (a -Dsun.java2d.dpiaware=false command line option still overrides it), and the application manifest (see quarkus.desktop.awt.windows.manifest) declares per monitor DPI awareness. Windows then lets the application scale itself to the display scale factor (crisp text and images). When disabled, Windows stretches the windows of the application as bitmaps (blurry) on displays with a scale factor above 100 %.

Environment variable: QUARKUS_DESKTOP_AWT_WINDOWS_DPI_AWARE

boolean

true

Whether to embed an application manifest in the native executable, as the java launcher has one.

The manifest selects the version 6 of the Windows common controls (the visual styles of the native AWT components and dialogs; without it they look like Windows 2000 controls), declares the DPI awareness of the application (see quarkus.desktop.awt.windows.dpi-aware) and the supported Windows versions. It is embedded by the linker, through -H:NativeLinkerOption options that the extension adds to the native build.

Environment variable: QUARKUS_DESKTOP_AWT_WINDOWS_MANIFEST

boolean

true

The Windows subsystem of the native executable.

console, the default, is the subsystem of the java launcher : started from Explorer, the application gets a console window, which shows its log. windows is the subsystem of the javaw launcher : no console window (the standard output and error streams of the application are lost unless they are redirected, so configure a log file).

Environment variable: QUARKUS_DESKTOP_AWT_WINDOWS_SUBSYSTEM

console, windows

console

Whether to copy the Microsoft Visual C++ runtime libraries (msvcp140.dll, vcruntime140.dll and vcruntime140_1.dll) of the GraalVM used for the native build next to the native executable, when the native executable uses the AWT libraries.

The JDK AWT library awt.dll needs msvcp140.dll, which a Windows installation does not always have (it comes with the Visual C++ Redistributable). With a local copy, the native executable and its libraries can be distributed as they are, as the JDK does.

Environment variable: QUARKUS_DESKTOP_AWT_WINDOWS_COPY_VC_RUNTIME

boolean

true

Whether the native executable supports the Java Access Bridge, which screen readers such as JAWS or NVDA use to access the user interface of Java applications.

Users enable the Java Access Bridge with jabswitch -enable (or in the Windows accessibility settings), which configures the assistive_technologies of every Java application in %USERPROFILE%\.accessibility.properties. When enabled, the Java Access Bridge is included in the native executable, as it is in the JDK (javaaccessbridge.dll and jawt.dll are copied next to the native executable), and it is loaded when the user enabled it. When disabled, the javax.accessibility.assistive_technologies system property defaults to an empty value in the native executable, so that the native executable ignores the user setting, instead of failing to start with a java.awt.AWTError: Could not load or activate service provider.

Environment variable: QUARKUS_DESKTOP_AWT_WINDOWS_ACCESS_BRIDGE

boolean

true

The logical font configuration (the physical fonts behind the Dialog, SansSerif, Serif, Monospaced and DialogInput logical fonts, used by AWT components and by default in Swing).

jdk, the default, is the font configuration of the JDK used for the native build (its lib/fontconfig.properties.src file, embedded in the native executable and extracted to the temporary directory at startup) : the logical fonts display the same scripts as in JVM mode (Arabic, Hebrew, Chinese, Japanese, Korean, Thai, Indic scripts…​), and all the charsets of the JDK are included in the native executable, since the font configuration uses many of them. minimal is the minimal font configuration of the Quarkus AWT extension (Latin scripts only) : a slightly smaller native executable, with the standard charsets only (fonts whose names or character maps use a legacy encoding such as Shift_JIS or GBK, and RTF text in other charsets, are then not read as in JVM mode). On Linux and macOS, all the charsets are always included.

Environment variable: QUARKUS_DESKTOP_AWT_WINDOWS_FONT_CONFIGURATION

jdk, minimal

jdk

Whether the JDK AWT classes support the JavaBeans API in native executables : their public constructors, methods and fields are registered for reflection, so that the Introspector finds their bean properties and event sets, and that XMLEncoder, XMLDecoder, Statement, Expression, EventHandler and Beans.instantiate work with them, as in JVM mode.

The classes are the AWT components and menu components, the layouts (GridBagConstraints included), the values of their properties (Color, Font, Insets, Point, Rectangle, Cursor, MenuShortcut…​), the AWT events, listeners and adapters. For instance Introspector.getBeanInfo(Button.class) finds the label property, XMLEncoder writes a Panel with its layout and components, and EventHandler.create(ActionListener.class, target, "text", "source.label") reads the label of the source of an ActionEvent.

It makes a native executable about 0.3 MB larger. When disabled, the Introspector finds no bean property of these classes (other than those that the extensions register for their own needs) and XMLEncoder cannot write them. The same property of the Desktop Swing extension, quarkus.desktop.swing.java-beans.jdk-classes (disabled by default), registers the Swing classes, and the AWT classes that they extend whatever the value of this property.

Environment variable: QUARKUS_DESKTOP_AWT_JAVA_BEANS_JDK_CLASSES

boolean

true

Whether the native build registers what the JDK desktop code looks up and may not find, for native executables built with --exact-reachability-metadata (GraalVM : a lookup that is not registered then fails with a missing registration error instead of answering "not found", even when "not found" is the expected answer).

The registered lookups are those of the JDK expected to fail (the BeanInfo, Customizer, PersistenceDelegate and Editor classes that the JavaBeans API probes for the JDK classes that the extensions register for it, the region names that Nimbus probes, the .properties files next to the resource bundles of the JDK, the META-INF/services files of the desktop services, the processInputMethodEvent methods that the text components of the JDK do not declare…​), the types whose members the JavaBeans API queries, and the var handles of the native memory accesses of Java2D and fonts. They make a native executable about 0.3 MB larger, and are useless without exact reachability metadata. The methods that AWT and Swing look up in the classes of the application and of its libraries (coalesceEvents in the components…​) are registered for every native executable, declared or not.

By default, they are registered when quarkus.native.additional-build-args or quarkus.native.additional-build-args-append contains --exact-reachability-metadata (or -H:ThrowMissingRegistrationErrors). Set this property when the option is given another way.

Environment variable: QUARKUS_DESKTOP_AWT_EXACT_REACHABILITY_METADATA

boolean

Whether the first thread of the process runs the Cocoa event loop, as with the java launcher, the Quarkus application running on a new thread named main.

AppKit, which AWT, Swing and JavaFX use on macOS, only runs on the first thread of the process : without this, the first window of an AWT or Swing application never shows. Disable it only with the Quarkus FX launcher, which then runs JavaFX on the first thread itself (AWT then runs embedded in JavaFX), or with a GraalVM version that keeps the first thread in the Cocoa event loop itself. It is ignored when the application has an SWT user interface (Desktop SWT extension), whose event loop runs on the first thread.

Environment variable: QUARKUS_DESKTOP_AWT_MACOS_PARK_MAIN_THREAD

boolean

true

The stack size of the thread that runs the Quarkus application (the first thread of a macOS process has 8 MiB, the other threads 512 KiB by default).

Environment variable: QUARKUS_DESKTOP_AWT_MACOS_MAIN_THREAD_STACK_SIZE

MemorySize 

8M

How long System.exit may take once the application has stopped before the process is halted, 0 to wait for ever. A safety net against an exit that never completes while AppKit runs on the first thread.

Environment variable: QUARKUS_DESKTOP_AWT_MACOS_EXIT_HALT_TIMEOUT

Duration 

10S

The name of the application in the menu bar and the Dock : the default value of the apple.awt.application.name system property in the native executable (the java launcher sets it to the simple name of the main class). By default, the name of the packages of the application (quarkus.desktop.packaging.name) with the Desktop Packaging extension, else the Quarkus application name (quarkus.application.name).

Environment variable: QUARKUS_DESKTOP_AWT_MACOS_APPLICATION_NAME

string

Whether to embed an information property list (Info.plist) in the native executable, as the java launcher has one : bundle identifier, name and versions of the application, high resolution capability, and the description of the microphone use (Java Sound capture) that macOS shows when it asks the user for the permission.

Environment variable: QUARKUS_DESKTOP_AWT_MACOS_INFO_PLIST

boolean

false

Whether the native executable declares the minimum macOS version and the SDK version of the java launcher of the JDK that builds it (its LC_BUILD_VERSION load command), as a JVM application does.

macOS does not start an executable on a version older than its minimum version, and AppKit chooses the look of the windows (the height of the title bars for instance) and its compatibility behaviors from its SDK version. When disabled, the linker writes the version of the SDK of the Xcode tools as both : the executable then only starts on that macOS version and later, and gets the look of that version.

Environment variable: QUARKUS_DESKTOP_AWT_MACOS_JDK_BUILD_VERSION

boolean

true

Whether the event is fired. By default it is, except in tests (@QuarkusTest, where it would open the windows of the application) : set %test.quarkus.desktop.awt.startup-event.enabled=true for user interface tests. In tests, quarkus.arc.test.disable-application-lifecycle-observers=true disables it too.

Environment variable: QUARKUS_DESKTOP_AWT_STARTUP_EVENT_ENABLED

boolean

When the event is fired : auto during the startup of the application (queued on the event dispatch thread after the StartupEvent observers : its observers may run while a @QuarkusMain runs), manual when the application calls DesktopLifecycle.start() (from its @QuarkusMain once its work before the user interface is done, or from a StartupEvent observer).

Environment variable: QUARKUS_DESKTOP_AWT_STARTUP_EVENT_MODE

auto, manual

auto

Whether the application stops (Quarkus.asyncExit()) when its last visible window is closed or hidden, once a first window opened. Only for an application observing DesktopStartupEvent, never in tests, nor with Quarkus FX. Disable it for an application that stays alive without windows (a tray icon, the macOS convention), or that closes a window before showing the next one (a splash screen closed before the main window shows).

Environment variable: QUARKUS_DESKTOP_AWT_EXIT_ON_LAST_WINDOW_CLOSED

boolean

true

Whether the application runs once per user : a second launch, while the application runs, gives its files and URIs to the running instance (an io.quarkiverse.desktop.awt.OpenRequest of source ANOTHER_LAUNCH, maybe without files nor URIs, fired on its event dispatch thread) and exits with the code 0 before its user interface starts. The running instance decides what to do : open them, bring its window to front. Only for an application observing DesktopStartupEvent, and only in production : not in dev mode, whose restarts would take the launches of the installed application, nor in tests. When the running instance cannot be reached within a few seconds, the second launch starts as usual.

Environment variable: QUARKUS_DESKTOP_AWT_SINGLE_INSTANCE

boolean

false

About the Duration format

To write duration values, use the standard java.time.Duration format. See the Duration#parse() Java API documentation for more information.

You can also use a simplified format, starting with a number:

  • If the value is only a number, it represents time in seconds.

  • If the value is a number followed by ms, it represents time in milliseconds.

In other cases, the simplified format is translated to the java.time.Duration format for parsing:

  • If the value is a number followed by h, m, or s, it is prefixed with PT.

  • If the value is a number followed by d, it is prefixed with P.

About the MemorySize format

A size configuration option recognizes strings in this format (shown as a regular expression): [0-9]+[KkMmGgTtPpEeZzYy]?.

If no suffix is given, assume bytes.

Desktop Swing

Configuration property fixed at build time - All other configuration properties are overridable at runtime

Configuration property

Type

Default

The look and feels of the JDK included in native executables : all, or a list of metal, nimbus, synth, motif, windows (with Windows Classic), gtk and multi (the multiplexing look and feel of the auxiliary look and feels).

By default, native executables include all the look and feels of the JDK for their platform. They make the native executable larger (about 10 MB for all of them : Nimbus and the multiplexing look and feel about 3 MB each), so an application can list only those it uses. Metal, the default look and feel, is always included (and Aqua on macOS, which draws the AWT components there); Nimbus and GTK include the Synth look and feel they extend, but not the loading of Synth XML files (synth). Setting a look and feel that is not included fails with a ClassNotFoundException.

This property has no effect in JVM mode.

Environment variable: QUARKUS_DESKTOP_SWING_INCLUDED_LOOK_AND_FEELS

list of all, metal, nimbus, synth, motif, windows, gtk, multi

all

Whether the JDK Swing classes support the JavaBeans API in native executables : their public constructors, methods and fields are registered for reflection, so that the Introspector finds their bean properties and event sets, and that XMLEncoder, XMLDecoder, Statement, Expression, EventHandler and Beans.instantiate work with them, as in JVM mode. The AWT classes that they extend are registered too (as with quarkus.desktop.awt.java-beans.jdk-classes=true), and the icons of the bean infos of the Swing components are included (BeanInfo.getIcon).

The classes are the public classes of javax.swing, javax.swing.border, javax.swing.event, javax.swing.table and javax.swing.tree (components, models, layouts, borders, actions, key strokes, icons, renderers and editors, events and listeners), the text components, documents and formatters of javax.swing.text, and the UI resources of javax.swing.plaf. For instance XMLEncoder writes a JPanel with its border, layout and components, a JTabbedPane, a JTree with its nodes, and XMLDecoder reads them.

It is disabled by default because it makes a native executable 3 to 4 MB larger (many public methods of the Swing classes are not used otherwise). When disabled, the Introspector finds no bean property of these classes (other than the properties usually transferred with new TransferHandler("text"), which are always registered) and XMLEncoder cannot write them.

Environment variable: QUARKUS_DESKTOP_SWING_JAVA_BEANS_JDK_CLASSES

boolean

false

The look and feel set when the application starts, before it runs (on the event dispatch thread, in JVM mode and in native executables).

system (the look and feel of the platform : Windows on Windows, Aqua on macOS, GTK on a GNOME desktop, Metal otherwise), cross-platform (Metal), metal, nimbus, motif, windows, windows-classic, gtk, or the class name of a look and feel (an application look and feel, or a library one such as FlatLaf). When not set, Swing uses its default look and feel (Aqua on macOS, Metal elsewhere, unless the swing.defaultlaf system property sets another one), and the application can set the look and feel itself with UIManager.setLookAndFeel.

A look and feel that this platform does not support (for instance windows on Linux) or that cannot be created is reported as a warning, and the default look and feel is kept. The look and feel classes of the JDK are included in native executables as quarkus.desktop.swing.included-look-and-feels configures them (all of them by default ; the build warns when this property names one that is not included) ; an application look and feel class is registered for reflection when it is in the Jandex index of the application, or when this property names it at build time.

Environment variable: QUARKUS_DESKTOP_SWING_LOOK_AND_FEEL

string

Desktop SWT

Configuration property fixed at build time - All other configuration properties are overridable at runtime

Configuration property

Type

Default

Where the native executable finds the native libraries of SWT (swt-win32-<version>.dll, libswt-gtk-<version>.so, libswt-cocoa-<version>.jnilib…​).

embedded : the libraries are resources of the native executable, a single file. SWT extracts them on the first run, as it does in JVM mode, into ~/.swt/lib/<os>/<arch> (or into swt.library.path when this system property is set). next-to-executable : the libraries are copied next to the native executable when it is built, and the executable loads them from its directory : nothing is written to the home directory, and the libraries can be signed with the executable (a macOS application bundle). They are then distributed with the executable.

Environment variable: QUARKUS_DESKTOP_SWT_NATIVE_LIBRARIES

embedded, next-to-executable

embedded

The subsystem of the native executable : console (the default of native executables), or windows for a user interface application without a console window, as with javaw. A windows executable has no standard output and error streams when it is not started from a console : log to a file (quarkus.log.file.enabled).

Environment variable: QUARKUS_DESKTOP_SWT_WINDOWS_SUBSYSTEM

console, windows

console

Whether the native executable declares the minimum macOS version and the SDK version of the java launcher of the JDK that builds it (its LC_BUILD_VERSION load command), as a JVM application does.

macOS does not start an executable on a version older than its minimum version, and AppKit chooses the look of the windows and controls (the height of the title bars, the size of the controls, the background color of the widgets for instance) from its SDK version : the executable starts on the macOS versions that the JDK supports, and looks as in JVM mode. When disabled, the linker writes the version of the SDK of the Xcode tools as both : the executable then only starts on that macOS version and later, and gets the look of that version. With the Desktop AWT extension, quarkus.desktop.awt.macos.jdk-build-version applies instead : that extension writes the versions.

Environment variable: QUARKUS_DESKTOP_SWT_MACOS_JDK_BUILD_VERSION

boolean

true

Whether the user interface runs. By default it does, except in tests (@QuarkusTest and @QuarkusMainTest, where it would open the shells of the application) : set %test.quarkus.desktop.swt.startup-event.enabled=true for user interface tests. A @QuarkusTest then runs it on a thread of the extension (except on macOS, where it needs the first thread of the process), a @QuarkusMainTest on the thread running the main, as in production. In tests, quarkus.arc.test.disable-application-lifecycle-observers=true disables it too. When it does not run, SwtLifecycle.run() returns at once (an application without @QuarkusMain then stops at once), and the tasks for the user interface thread are rejected.

Environment variable: QUARKUS_DESKTOP_SWT_STARTUP_EVENT_ENABLED

boolean

Whether the application stops (Quarkus.asyncExit()) when its last visible shell is closed or hidden, once a first shell opened. Never in tests. Disable it for an application that stays alive without shells (a tray icon, the macOS convention), or that closes a shell before opening the next one (a splash screen closed before the main shell opens).

Environment variable: QUARKUS_DESKTOP_SWT_EXIT_ON_LAST_SHELL_CLOSED

boolean

true

Whether the application runs once per user : a second launch, while the application runs, gives its files and URIs to the running instance (an io.quarkiverse.desktop.swt.OpenRequest of source ANOTHER_LAUNCH, maybe without files nor URIs, fired on its user interface thread) and exits with the code 0 before its user interface starts (its StartupEvent observers still run). The running instance decides what to do : open them, bring its shell to front. Only in production : not in dev mode, whose restarts would take the launches of the installed application, nor in tests. When the running instance cannot be reached within a few seconds, the second launch starts as usual.

Environment variable: QUARKUS_DESKTOP_SWT_SINGLE_INSTANCE

boolean

false

The name of the application, given to SWT (Display.setAppName) before the Display is created : the name of the application menu and of the Dock on macOS, the program name and the WM_CLASS of the windows on Linux (matched with the .desktop file of the application), the application identifier of the taskbar on Windows. Defaults to the name of the packages of the Desktop Packaging extension (quarkus.desktop.packaging.name) when it is set, else to quarkus.application.name. The packages of that extension give the value of the build to their shortcuts and desktop entry : one set at run time only is not theirs.

Environment variable: QUARKUS_DESKTOP_SWT_APPLICATION_NAME

string

Desktop Packaging

Configuration property fixed at build time - All other configuration properties are overridable at runtime

Configuration property

Type

Default

Whether the extension does anything : the packages, and the icon and version of the Windows native executable.

Environment variable: QUARKUS_DESKTOP_PACKAGING_ENABLED

boolean

true

The packages to build : directory (the application image, which the other formats install), msi, exe, msix (Windows), dmg, pkg (macOS), deb, rpm, appimage, flatpak, snap (Linux). The formats of the other operating systems are skipped : the same list builds the packages of each operating system, on a machine of that operating system. None by default.

A native build (quarkus.native.enabled) packages the native executable, a JVM build packages the jar with a Java runtime (jpackage and jlink of the JDK). Each format needs its tool on the machine of the build : the build fails when it is missing.

Environment variable: QUARKUS_DESKTOP_PACKAGING_FORMATS

list of directory, msi, exe, msix, dmg, pkg, deb, rpm, appimage, flatpak, snap

The name of the application, as its users see it : the name of the shortcuts, of the installed program, of the application bundle on macOS. Defaults to quarkus.application.name. It names the files of the application on Windows and macOS : it has none of \ / : * ? " < > | % ; on Windows, none of / " % on macOS, and no control characters. When it is set, Desktop AWT and Desktop SWT give it to the application at run time too, unless their own property sets another name : the name of the application menu of macOS for both, and for SWT the identity of the application on Windows and the class of its windows on Linux.

Environment variable: QUARKUS_DESKTOP_PACKAGING_NAME

string

The version of the application. Defaults to quarkus.application.version. The formats that need numbers (MSI, MSIX, macOS) take its leading numbers, without the v of a tag : 1.2.3-SNAPSHOT and v1.2.3 are 1.2.3 for them. Windows compares them to upgrade the application, up to a limit : 255, 255 and 65535 for the three numbers of an MSI package, 65535 for an MSIX package. The build of such a package fails for a larger number, such as the year of 2025.1.0.

Environment variable: QUARKUS_DESKTOP_PACKAGING_VERSION

string

The identifier of the application, a reverse domain name such as org.acme.editor : the bundle identifier on macOS (without underscores : an element loses its leading ones, and the others are dashes), the application ID of Flatpak (at least three elements, none of which starts with a digit), the identity of the MSIX package, the source of the upgrade code of the Windows installers. Defaults to the group ID of the project followed by the name of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_IDENTIFIER

string

The vendor of the application : the publisher on Windows, the maintainer of the Linux packages.

Environment variable: QUARKUS_DESKTOP_PACKAGING_VENDOR

string

Unknown

A one line description of the application. Defaults to its name.

Environment variable: QUARKUS_DESKTOP_PACKAGING_DESCRIPTION

string

The copyright notice of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_COPYRIGHT

string

The home page of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_HOMEPAGE

string

The license of the application, as a text file : shown by the Windows setup program and by the macOS installer package, installed with the Debian and RPM packages.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LICENSE_FILE

string

The icon of the application, a square PNG file of 512 or 1024 pixels : the extension derives the icons of every format from it (.ico, .icns, the PNG files of each size). Defaults to src/main/packaging/icon.png when the file exists, and to a generic icon otherwise.

Environment variable: QUARKUS_DESKTOP_PACKAGING_ICON

string

A directory of files to add to the application image : documents, data files. They are next to the executable, in Contents/Resources on macOS, and at the root of the image in JVM mode on Linux, where the launcher is in the bin directory. Defaults to src/main/packaging/content when the directory exists.

Environment variable: QUARKUS_DESKTOP_PACKAGING_CONTENT_DIRECTORY

string

The directory of the packages, relative to the build directory (target, build with Gradle), or absolute.

Environment variable: QUARKUS_DESKTOP_PACKAGING_OUTPUT_DIRECTORY

string

packaging

The paths of the packaging tools that are not on the PATH, by name : wix, iscc, makeappx, signtool, hdiutil, pkgbuild, productbuild, codesign, xcrun, dpkg-deb, dpkg-shlibdeps, rpmbuild, appimagetool, flatpak, snapcraft, jpackage.

Environment variable: QUARKUS_DESKTOP_PACKAGING_TOOLS__TOOL_

Map<String,String>

The extensions of the files, without their dot (acme).

Environment variable: QUARKUS_DESKTOP_PACKAGING_FILE_TYPES__TYPE__EXTENSIONS

list of string

required

The MIME type of the files, which Linux knows the files by. Defaults to application/x-<package name>-<type>.

Environment variable: QUARKUS_DESKTOP_PACKAGING_FILE_TYPES__TYPE__MIME_TYPE

string

The description of the type, which the file managers show. Defaults to the name of the application followed by the name of the type.

Environment variable: QUARKUS_DESKTOP_PACKAGING_FILE_TYPES__TYPE__DESCRIPTION

string

The icon of the files, a square PNG file of 256 pixels or more. Defaults to the icon of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_FILE_TYPES__TYPE__ICON

string

The URL schemes of the application (acme for the URLs acme://…​) : the packages register the application for them, so that the browsers and the other applications open these URLs with it, as they open the files of file-types.

Environment variable: QUARKUS_DESKTOP_PACKAGING_URL_SCHEMES

list of string

Whether the native executable gets the icon of the application and its version information (the Details tab of its properties : product name, version, vendor, copyright). They are resources linked in the executable when it is built : the extension has to be in the application then, with or without packages. Native sources (quarkus.native.sources-only=true) and native-image bundles (quarkus.native.bundle.*) do not get them : they are linked from a file of the build directory. An application that links a resource file of its own (-H:NativeLinkerOption=app.res in quarkus.native.additional-build-args) keeps it, without them ; one linked in another way conflicts with them (the link fails with CVT1100: duplicate resource) unless this is false. In JVM mode, jpackage gives them to its launcher.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_EXECUTABLE_RESOURCES

boolean

true

The upgrade code of the application, a GUID, with or without braces : the Windows installers of the next versions upgrade the application that has the same code. Defaults to a GUID derived from the identifier of the application : never change either once the application is released.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_UPGRADE_CODE

string

Whether the application is installed for the current user only, without administrator rights (in %LocalAppData%\Programs), rather than for all users (in Program Files).

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_PER_USER

boolean

false

The name of the installation directory. Defaults to the name of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_INSTALL_DIRECTORY

string

Whether the installers add a shortcut to the Start menu.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_START_MENU

boolean

true

The folder of the shortcut in the Start menu. None by default : the shortcut is in the programs folder.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_START_MENU_GROUP

string

Whether the installers add a shortcut to the desktop : the MSI package always does, the setup program lets the user choose.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_DESKTOP_SHORTCUT

boolean

false

The name of the identity of the package : letters, digits, dots and dashes. Defaults to the identifier of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_IDENTITY_NAME

string

The publisher of the package, a distinguished name that has to be the subject of the certificate that signs the package (CN=Acme, O=Acme, C=US). Defaults to CN= followed by the vendor.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_PUBLISHER

string

The name of the publisher, as the users see it. Defaults to the vendor.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_PUBLISHER_DISPLAY_NAME

string

The capabilities of the application : general capabilities (internetClient), restricted ones (allowElevation), and the others with their kind (rescap:packageQuery, uap:documentsLibrary, device:microphone). A desktop application is a full trust application : runFullTrust is always declared.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_CAPABILITIES

list of string

runFullTrust

The minimum version of Windows that installs the package : four numbers, such as 10.0.17763.0 (Windows 10 1809) or 10.0.22000.0 (Windows 11). The package is declared as tested on 10.0.26100.0 (Windows 11 24H2), or on the minimum version when it is later.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_MIN_VERSION

string

10.0.17763.0

The URL of the directory where the MSIX package is published (https://acme.org/downloads) : the build then writes an App Installer file next to the package (<name>.appinstaller), which Windows installs the package from, and with which it updates the application when that directory has a new version. Publish both files in that directory, and give the users the URL of the App Installer file.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_UPDATE_URL

string

How often Windows looks for a new version of an application installed from the App Installer file, in hours, when it starts : 0 at every start.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_MSIX_UPDATE_HOURS

int

24

The certificate file (.pfx) that signs the executables and the packages. Nothing is signed without a certificate file, a subject name, a thumbprint or arguments. An unsigned MSIX package cannot be installed.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_SIGN_CERTIFICATE_FILE

string

The password of the certificate file.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_SIGN_CERTIFICATE_PASSWORD

string

The subject name of the signing certificate, in the certificate store.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_SIGN_SUBJECT_NAME

string

The SHA-1 thumbprint of the signing certificate, in the certificate store.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_SIGN_THUMBPRINT

string

The URL of the RFC 3161 time stamp server.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_SIGN_TIMESTAMP_URL

string

More arguments of signtool sign, after the ones of the other properties : /sm (a certificate of the machine store), /csp and /kc (a key of a cryptographic provider), /dlib and /dmdf (a signing service such as Azure Trusted Signing). They sign on their own, without a certificate file, a subject name or a thumbprint. The extension adds /fd SHA256 unless they have /fd, and with timestamp-url it adds /tr and, unless they have /td, /td SHA256. Write the paths absolute (the setup program is signed in the directory of Inno Setup) and with / : in a list, \ escapes the next character.

Environment variable: QUARKUS_DESKTOP_PACKAGING_WINDOWS_SIGN_ARGUMENTS

list of string

The category of the application (LSApplicationCategoryType) : its identifier, such as public.app-category.developer-tools, or the last part of it, such as developer-tools.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_CATEGORY

string

public.app-category.utilities

The minimum version of macOS that runs the application (LSMinimumSystemVersion). Defaults to the minimum version that the native executable declares, and in JVM mode to the one that jpackage writes.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_MINIMUM_SYSTEM_VERSION

string

More entries of the Info.plist of the application bundle : the usage descriptions of the privacy permissions (NSCameraUsageDescription), for instance. The values are strings, except true and false, which are Booleans. An entry replaces the one of the same key that the extension writes (NSHighResolutionCapable, NSSupportsAutomaticGraphicsSwitching, CFBundleName…​), or that jpackage writes in JVM mode.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_INFO_PLIST__KEY_

Map<String,String>

The directory where the installer package installs the application bundle.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_INSTALL_LOCATION

string

/Applications

Whether the application bundle and the packages are signed. When they are not, whatever the identities, the bundle of a JVM application that jpackage signed ad hoc (on Apple silicon) is signed ad hoc again after the changes of the extension, so that its signature stays valid.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_SIGN_ENABLED

boolean

true

The identity that signs the application bundle and the disk image, a Developer ID Application certificate of the keychain. By default, the signature is ad hoc (-) : the application runs on the machine that built it, and Gatekeeper blocks it on the others. A certificate also signs the macOS libraries inside the jars of a JVM application that are not signed with a certificate, which the notary service checks : a signed jar (META-INF/*.SF), which cannot be changed, that has one fails the build when the packages are notarized, and gets a warning otherwise.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_SIGN_IDENTITY

string

-

The identity that signs the installer package, a Developer ID Installer certificate of the keychain, unless macos.sign.enabled is false. The installer package is not signed by default : the build warns about it when the application bundle is signed with a certificate.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_SIGN_INSTALLER_IDENTITY

string

The entitlements of the application, a property list file, in place of the default ones. With a certificate, the hardened runtime only loads the libraries signed by Apple or with the identity of the application, unless an entitlement allows the others. By default, a JVM application has the entitlements that the JVM needs (just-in-time compilation, unsigned executable memory, libraries of other teams), and a native executable signed with a certificate has the one of the libraries of other teams (com.apple.security.cs.disable-library-validation), for the libraries that it loads from outside the bundle, such as the ones that SWT extracts to the home directory of the user.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_SIGN_ENTITLEMENTS

string

The keychain of the identities. Defaults to the keychains of the user.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_SIGN_KEYCHAIN

string

The keychain profile of the credentials of the notary service, stored with xcrun notarytool store-credentials. When set, the disk image and the installer package are submitted to the notary service of Apple, and the ticket is stapled to them : the build waits for the answer, and fails with the log of the submission when the service does not accept a package. They have to be signed with a Developer ID identity (macos.sign.identity, and macos.sign.installer-identity for the installer package) : the build fails before they are built otherwise. Without a keychain profile, the build warns that the packages of a bundle signed with a certificate are not notarized.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_NOTARIZE_KEYCHAIN_PROFILE

string

How long the build waits for the answer of the notary service, as the --timeout option of notarytool takes it (30m, 2h) : the build fails when the time is up. No limit by default.

Environment variable: QUARKUS_DESKTOP_PACKAGING_MACOS_NOTARIZE_TIMEOUT

string

The name of the package and of the command of the application : lowercase letters, digits and dashes. Defaults to the name of the application, in that form.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_PACKAGE_NAME

string

The directory where the Debian and RPM packages install the application, in a directory named after the package : an absolute directory other than /, whose names have letters, digits, dots, dashes, underscores and plus signs.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_INSTALL_DIRECTORY

string

/opt

The categories of the desktop entry, which place the application in the menus.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_CATEGORIES

list of string

Utility

The window class of the application (StartupWMClass of the desktop entry) : desktops use it to associate the windows of the application with its launcher. Defaults to the class that Desktop SWT gives the windows of the application, none otherwise.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_STARTUP_WM_CLASS

string

The release of the Debian and RPM packages : the version of the package itself, for a given version of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_RELEASE

string

1

The maintainer of the package, as a name and an email address : Jane Doe <jane@acme.org>. Defaults to the vendor.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_DEB_MAINTAINER

string

The section of the package.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_DEB_SECTION

string

utils

Whether the package depends on the packages of the shared libraries that the application is linked with, found with dpkg-shlibdeps (the dpkg-dev package).

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_DEB_AUTO_DEPENDS

boolean

true

More packages that the package depends on : the libraries that the application loads at run time (dlopen), which the automatic dependencies miss.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_DEB_DEPENDS

list of string

The license of the application, as RPM names it : Apache-2.0, GPL-3.0-or-later…​

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_RPM_LICENSE

string

Unknown

The group of the package.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_RPM_GROUP

string

Whether the package requires the shared libraries that the application is linked with, found by rpmbuild.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_RPM_AUTO_REQUIRES

boolean

true

More capabilities that the package requires.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_RPM_REQUIRES

list of string

The runtime of the AppImage, for a build without access to GitHub or with a runtime of a known version : a runtime-<arch> file of https://github.com/AppImage/type2-runtime/releases. By default, appimagetool downloads the latest runtime at each build.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_APPIMAGE_RUNTIME_FILE

string

The update information of the AppImage, which the AppImage updaters (AppImageUpdate, AppImageLauncher) read to download a new version : gh-releases-zsync|<owner>|<repository>|latest|<name>-*-<arch>.AppImage.zsync for the releases of GitHub, or zsync|<URL of the .zsync file>. The build then writes the .zsync file next to the AppImage (with zsyncmake), to publish with it.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_APPIMAGE_UPDATE_INFORMATION

string

The runtime of the application. The default one has GTK 3, which SWT needs. org.gnome.Platform also has WebKitGTK, which the Browser widget of SWT uses : with quarkus.desktop.packaging.linux.flatpak.sdk=org.gnome.Sdk and quarkus.desktop.packaging.linux.flatpak.runtime-version set to a version of GNOME, such as 50.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_FLATPAK_RUNTIME

string

org.freedesktop.Platform

The version of the runtime and of its SDK : a branch of the runtime on Flathub, such as 25.08 for org.freedesktop.Platform or 50 for org.gnome.Platform. A branch reaches its end of life after one or two years, and gets no security fixes then : the version follows the releases of the runtime.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_FLATPAK_RUNTIME_VERSION

string

25.08

The SDK of the runtime, of the same version : org.gnome.Sdk for org.gnome.Platform.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_FLATPAK_SDK

string

org.freedesktop.Sdk

The branch of the application.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_FLATPAK_BRANCH

string

stable

The permissions of the sandbox, as the options of flatpak build-finish.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_FLATPAK_FINISH_ARGS

list of string

--share=ipc, --socket=x11, --socket=wayland, --socket=pulseaudio, --share=network, --device=dri, --filesystem=home

The base snap.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_BASE

string

core24

The confinement of the snap : strict, classic or devmode. A classic snap has no gnome extension : set quarkus.desktop.packaging.linux.snap.extensions to empty.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_CONFINEMENT

string

strict

The grade of the snap : stable or devel.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_GRADE

string

stable

The extensions of the application of the snap, empty for none. The gnome extension gives it the libraries of a desktop application (X11, Wayland, GTK, fonts, themes) : it supports the strict and devmode confinements, not classic.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_EXTENSIONS

list of string

gnome

The interfaces that the application plugs.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_PLUGS

list of string

home, network, audio-playback, removable-media

The packages of the Ubuntu archive to add to the snap.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_STAGE_PACKAGES

list of string

More arguments of snapcraft pack : --destructive-mode to build on the host rather than in an LXD container, for instance.

Environment variable: QUARKUS_DESKTOP_PACKAGING_LINUX_SNAP_BUILD_ARGS

list of string

The JDK whose jpackage builds the application image, JDK 21 or later : its jlink builds the Java runtime of the application, which is then of that version. Defaults to the JDK of the build, rather than the one of the PATH ; quarkus.desktop.packaging.tools.jpackage takes precedence over both.

Environment variable: QUARKUS_DESKTOP_PACKAGING_JVM_JDK

string

The modules of the Java runtime of the application (--add-modules of jpackage), to which the extension adds the ones that Quarkus needs. By default, the runtime has the modules of Java SE and the ones of the JDK that export an API, as an application on the class path may use any of them, and the modules that provide their services : the locale data, the charsets that are not standard, the key stores of Windows…​ A list of modules makes a smaller runtime, without these services unless it lists their modules : jdk.localedata for the languages other than English, jdk.charsets, jdk.crypto.mscapi…​ With JDK 21, the extension adds jdk.crypto.ec, which TLS needs.

Environment variable: QUARKUS_DESKTOP_PACKAGING_JVM_MODULES

list of string

The options of jlink. Defaults to the ones of jpackage : no debug information, no header files, no manual pages, no commands. On Linux, jlink strips the debug information of the native libraries (--strip-debug) with objcopy, which has to be on the PATH (the binutils package).

Environment variable: QUARKUS_DESKTOP_PACKAGING_JVM_JLINK_OPTIONS

list of string

A Java runtime to use rather than one built with jlink : jpackage takes it as it is, so quarkus.desktop.packaging.jvm.modules and quarkus.desktop.packaging.jvm.jlink-options cannot be set with it.

Environment variable: QUARKUS_DESKTOP_PACKAGING_JVM_RUNTIME_IMAGE

string

The options of the JVM of the application, separated by commas : -Xms64m,-Xmx512m, -Dkey=value…​ Each one is one argument of the JVM, white space and quotes included (-Dapp.title=Acme Editor) : the build warns about one that holds several options (-Xms64m -Xmx512m), which the JVM rejects. The long form of an option with its value after white space (--add-opens java.base/java.lang=ALL-UNNAMED) is written with =. Write the paths with /, which Java accepts on Windows (-Djava.library.path=$APPDIR/native) : in a list, \ escapes the next character (C:\lib is C:lib). An option with a comma or a backslash is set in an indexed property, and the other options then too, as the indexed properties replace the list (quarkus.desktop.packaging.jvm.options[0]=-Djdk.tls.client.protocols=TLSv1.2,TLSv1.3).

Environment variable: QUARKUS_DESKTOP_PACKAGING_JVM_OPTIONS

list of string