The badass-runtime plugin

https://badass-runtime-plugin.beryx.org/releases/latest/

The badass-runtime plugin allows you to create custom runtime images for non-modular applications. It also lets you create an application installer with the jpackage tool introduced in Java 14.

Found here: https://www.reddit.com/r/java/comments/ls4zai/java_modules_are_they_common_and_should_we_use/