Commit d0835ba6 authored by Christian Meyer's avatar Christian Meyer
Browse files

ZmtDistributionPlugin.groovy: start script is added pointing to launcher

parent e8c4b454
......@@ -13,12 +13,17 @@ import org.gradle.api.file.DuplicatesStrategy
*/
public class ZmtDistributionPlugin implements Plugin<Project> {
private static final def CONFIGURE = {
apply plugin: 'distribution'
apply plugin: 'application'
mainClassName = "de.zmt.Main"
startScripts {
applicationName = 'launcher'
}
distributions {
main {
contents {
with (rootProject.distributions.main.contents)
into ('lib') {
// project's own library and dependencies
from (project.jar)
......@@ -67,11 +72,7 @@ public class ZmtDistributionPlugin implements Plugin<Project> {
}
catch (org.gradle.process.internal.ExecException e) {
println "git tag for ${project.name} failed. Cannot obtain version list."
output = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = output
}
return ''
}
return output.toString().trim()
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment