Gradle/Maven plugin to package Java applications as native Windows
...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).