https://www.mkyong.com/gradle/gradle-multiple-start-script-examples/ http://gradle.monochromeroad.com/docs/userguide/application_plugin.html (45.4)
For reference above
build.gradle
task createExtScript(type: CreateStartScripts) {
mainClassName = "Main"
classpath = startScripts.classpath
classpath += files('/tmp/hoge')
outputDir = startScripts.outputDir
applicationName = 'extra_shell'
defaultJvmOpts = ["-Xms1024m", "-Xmx2048m"]
}
applicationDistribution.into("bin") {
duplicatesStrategy= DuplicatesStrategy.EXCLUDE
from(createExtScript)
fileMode = 0755
}
The following properties can be set for the task
Recommended Posts