-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
43 lines (36 loc) · 986 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
plugins {
id 'java'
id 'antlr'
}
version '0.0.1'
sourceCompatibility = 1.10
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
antlr group: 'org.antlr', name: 'antlr4', version: '4.7.2'
compile group: 'org.bytedeco', name: 'llvm-platform', version: '8.0.0-1.5'
compile group: 'org.json', name: 'json', version: '20180813'
implementation 'org.reflections:reflections:0.9.11'
implementation 'commons-cli:commons-cli:1.4'
}
generateGrammarSource {
arguments += ["-visitor"]
}
configurations {
extraLib.extendsFrom antlr, implementation
}
jar {
from {
configurations.extraLib.collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes(
'Main-Class': 'Main'
)
}
}