Creating UberJARs / FatJARs with Quarkus 📎
Setting the quarkus.package.uber-jar
parameter to true
in application.properties
, creates a self contained, executable JAR in the target
folder.
The simplest possible "hello,world" UberJAR with cdi
and resteasy
extensions takes ~9MB disk space.
Although it is hard to find any good arguments (do you know any?) to use this approach for container, kubernetes or clouds deployments, Quarkus UeberJARs are perfect for building electron-like desktop apps.
Big thanks to Alex Soto @alexsotob for the hint.