forked from CraftTweaker/ZenCodeAntlr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
35 lines (30 loc) · 701 Bytes
/
Copy pathbuild.gradle
File metadata and controls
35 lines (30 loc) · 701 Bytes
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
plugins {
id 'java'
id 'antlr'
id 'idea'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
antlr "org.antlr:antlr4:4.9.2"
compile "org.antlr:antlr4-runtime:4.9.2"
testImplementation(platform('org.junit:junit-bom:5.7.0'))
testImplementation('org.junit.jupiter:junit-jupiter')
}
generateGrammarSource {
maxHeapSize = "1024M"
arguments += ['-package', 'com.blamejared.zencode.parser']
outputDirectory = file('./src/main/java/com/blamejared/zencode/parser')
}
compileJava.dependsOn generateGrammarSource
clean {
delete "./src/main/java"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}