-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (38 loc) · 1016 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
plugins {
id 'java'
}
group 'me.nemanjamiljkovic'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
apply plugin: 'antlr'
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.commons:commons-csv:1.5'
compile 'com.jakewharton.fliptables:fliptables:1.0.2'
compile 'info.picocli:picocli:3.5.2'
compile 'org.fusesource.jansi:jansi:1.17.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
antlr "org.antlr:antlr4:4.7.1"
}
generateGrammarSource {
arguments += [
"-visitor",
"-long-messages",
"-package", "me.nemanjamiljkovic.hsformula"
]
}
jar {
manifest {
attributes "Main-Class": "me.nemanjamiljkovic.hsformula.cli.Main"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task runKiflice(type: JavaExec) {
main = 'me.nemanjamiljkovic.hsformula.cli.Main'
classpath = sourceSets.main.runtimeClasspath
args = ["examples/kiflice.csv"]
}