-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
53 lines (44 loc) · 890 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
49
50
51
52
53
plugins {
id 'antlr'
id 'java'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
test {
java {
srcDir 'test/java'
}
}
}
repositories {
mavenCentral()
}
test {
useJUnit()
maxHeapSize = '1G'
}
dependencies {
antlr "org.antlr:antlr4:4.7.1"
compile "org.antlr:antlr4:4.7.1"
testCompile 'junit:junit:4.12'
compile 'junit:junit:4.12'
}
generateGrammarSource {
outputDirectory = new File("src/main/java/com/tropicalbastos/brolang/ast")
arguments += ["-package", "com.tropicalbastos.brolang.ast"]
}
jar {
manifest {
attributes(
// 'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'com.tropicalbastos.brolang.Main'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}