-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
44 lines (36 loc) · 971 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
apply plugin: 'java'
apply plugin: 'antlr'
apply plugin: 'application'
mainClassName = "tech.prolingua.Prolingua"
repositories {
jcenter()
mavenCentral()
}
def generatedJavaSourcesDir = 'src/main/java/generatedcode'
generateGrammarSource {
outputDirectory = file( generatedJavaSourcesDir )
}
compileJava {
dependsOn generateGrammarSource
}
dependencies {
antlr group: 'org.antlr', name: 'antlr4', version: '4.7'
compile group: 'org.antlr', name: 'antlr4', version: '4.7'
compile group: 'javax.json', name: 'javax.json-api', version: '1.1'
compile group: 'org.glassfish', name: 'javax.json', version: '1.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
jar {
destinationDir = file( "." )
manifest {
attributes(
'Main-Class': 'tech.prolingua.Prolingua'
)
}
}
run {
def myArgs = findProperty( 'runArgs' )
if( myArgs != null ) {
args myArgs.split()
}
}