mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-10-25 20:32:20 +00:00
30 lines
645 B
Groovy
30 lines
645 B
Groovy
compileJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
generateGrammarSource {
|
|
maxHeapSize = "128m"
|
|
arguments += ['-package', 'codechicken.nei.search', '-visitor', '-no-listener']
|
|
outputDirectory = file("${projectDir}/build/generated/sources/search/antlr/codechicken/nei/search/")
|
|
}
|
|
|
|
compileJava.dependsOn generateGrammarSource
|
|
sourcesJar.dependsOn generateGrammarSource
|
|
|
|
sourcesJar {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs += ["build/generated/sources/search/antlr/"]
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events "passed", "skipped", "failed"
|
|
}
|
|
}
|