Commit 05c2c03d authored by dgelessus's avatar dgelessus
Browse files

Add Gradle application plugin

parent cfc26a09
apply plugin: 'application'
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'maven' apply plugin: 'maven'
...@@ -20,6 +21,8 @@ repositories { ...@@ -20,6 +21,8 @@ repositories {
jcenter() jcenter()
} }
mainClassName = "org.sablecc.sablecc.SableCC"
task javadocJar(type: Jar) { task javadocJar(type: Jar) {
classifier = 'javadoc' classifier = 'javadoc'
from javadoc from javadoc
...@@ -32,7 +35,7 @@ task sourcesJar(type: Jar) { ...@@ -32,7 +35,7 @@ task sourcesJar(type: Jar) {
jar { jar {
manifest { manifest {
attributes 'Main-Class': 'org.sablecc.sablecc.SableCC' attributes 'Main-Class': mainClassName
} }
} }
......
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