From 05c2c03de8f625da2f3842e504bc320e7006ef4c Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Wed, 6 Mar 2019 15:28:20 +0100 Subject: [PATCH] Add Gradle application plugin --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f75b06a..7271baf 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,4 @@ +apply plugin: 'application' apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'maven' @@ -20,6 +21,8 @@ repositories { jcenter() } +mainClassName = "org.sablecc.sablecc.SableCC" + task javadocJar(type: Jar) { classifier = 'javadoc' from javadoc @@ -32,7 +35,7 @@ task sourcesJar(type: Jar) { jar { manifest { - attributes 'Main-Class': 'org.sablecc.sablecc.SableCC' + attributes 'Main-Class': mainClassName } } -- GitLab