mirror of
https://github.com/irmen/prog8.git
synced 2024-11-25 19:31:36 +00:00
35 lines
560 B
Groovy
35 lines
560 B
Groovy
plugins {
|
|
id 'antlr'
|
|
id 'java'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
antlr('org.antlr:antlr4:4.7.2') {
|
|
exclude group: 'com.ibm.icu', module: 'icu4j'
|
|
}
|
|
}
|
|
|
|
compileJava {
|
|
dependsOn tasks.withType(AntlrTask)
|
|
}
|
|
|
|
generateGrammarSource {
|
|
outputDirectory = file("src/prog8/parser")
|
|
arguments += ["-no-listener","-no-visitor"]
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDirs = ["${project.projectDir}/src"]
|
|
}
|
|
antlr {
|
|
srcDirs = ["${project.projectDir}/antlr"]
|
|
}
|
|
}
|
|
}
|