The Gradle API for installDist task supports providing custom templates for Unix and Windows scripts. It is a much easier way for providing Jigsaw support in the start scripts, than updating already generated files.
Take the original Gradle templates
Update them for Jigsaw, and configure installDist task to use them,
Pass Jigsaw flags to the templates.
This would allow solving issues #13, #16 and #20 in (almost) one shot.
The Gradle API for
installDist
task supports providing custom templates for Unix and Windows scripts. It is a much easier way for providing Jigsaw support in the start scripts, than updating already generated files.installDist
task to use them,This would allow solving issues #13, #16 and #20 in (almost) one shot.
API reference:
https://docs.gradle.org/current/dsl/org.gradle.jvm.application.tasks.CreateStartScripts.html#org.gradle.jvm.application.tasks.CreateStartScripts:windowsStartScriptGenerator