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