JavaPackager
Gradle/Maven plugin to package Java applications as native Windows
...It was born while teaching to my students how to build and distribute their Java apps, and after seeing that a chain of several plugins was needed to achieve this task, I decided to develop a plugin to rule them all. Apply JavaPackager plugin in build.gradle using legacy mode (because at the moment it's only available in Maven Central repository). When you build your app, all configuration details are hardcoded into the executable and cannot be changed without recreating it or hacking with a resource editor. JavaPackager introduces a feature that allows passing of additional JVM options at runtime from an .l4j.ini file (like Launch4j does, but available for all platforms in the same way).