When the gradle application plugin generates startScripts, it generates both for windows and linux. Is there a way to exclude script windows from going to bin / when the distZip task is running?
You can remove the script windows in the doLasttask block startScrips, like:
doLast
startScrips
startScripts { doLast { delete windowsScript } }
You can use startScripts.enabled = falsein the build.gradle file. Tested with gradle 3.4
startScripts.enabled = false
exclude distZip build.gradle :
exclude
distZip
build.gradle
distZip.exclude "**/*.bat"
This excludes all files .batfrom the zip distribution.
.bat