-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
33 lines (28 loc) · 867 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
apply plugin: 'antlr'
apply plugin: 'idea'
apply plugin: 'groovy'
repositories {
mavenCentral()
}
dependencies {
antlr group: 'org.antlr', name: 'antlr4', version: '4.5.3'
compile group: 'org.opensourcebim', name:'ifcplugins', version: '0.0.30'
compile group: 'org.opensourcebim', name:'bimserverclientlib', version: '1.5.85'
compile group: 'org.codehaus.groovy', name:'groovy-all', version: '2.4.10'
testCompile 'junit:junit:4.12'
}
sourceSets {
main{
java.srcDir "${project.buildDir}/generated-src/main/antlr"
}
}
generateGrammarSource {
outputDirectory = new File("${project.buildDir}/generated-src/main/antlr")
arguments += ["-visitor"]
}
idea {
module {
// Marks the already(!) added srcDir as "generated"
generatedSourceDirs += file("${project.buildDir}/generated-src/antlr/main")
}
}