-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
48 lines (37 loc) · 1.35 KB
/
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
apply plugin: 'java'
apply plugin: 'antlr'
repositories {
mavenCentral()
}
////////////////////////////////////////////
// 1. Dependencies
dependencies {
antlr "org.antlr:antlr4:4.5.1" // use ANTLR version 4
compile files('libs/gzoumlib.jar') // use my library
compile "org.antlr:antlr4:4.5.1" // use ANTLR version 4
compile "org.ow2.sat4j:org.ow2.sat4j.core:2.3.5" // use the sat4j solver
//compile "org.choco-solver:choco-solver:4.0.1" // use the choco solver
runtime "org.antlr:antlr4:4.5.1" // use ANTLR version 4
//runtime "org.choco-solver:choco-solver:4.0.1" // use the choco solver
testCompile 'junit:junit:4.12' // Use JUnit version 4
}
////////////////////////////////////////////
// 2. Configurations
jar {
manifest {
attributes 'Main-Class': 'org.gzoumix.ifdj.IFDJ'
attributes 'Class-Path': 'antlr-4.5.1-complete.jar'
}
}
sourceSets.main.java.srcDirs = ['src/main/java', 'src-gen/main/java']
sourceSets.main.antlr.srcDirs = ['src/main/java/org/gzoumix/ts/ifdj/parser']
generateGrammarSource {
outputDirectory = file('src-gen/main/java/org/gzoumix/ifdj/lang/parser')
arguments = ['-no-listener', '-package', 'org.gzoumix.ifdj.lang.parser']
}
test {
// show standard out and standard error of the test JVM(s) on the console
//testLogging.showStandardStreams = true
}
////////////////////////////////////////////
// 3. Tasks