mirror of
https://github.com/irmen/prog8.git
synced 2024-12-25 08:29:25 +00:00
42 lines
675 B
Groovy
42 lines
675 B
Groovy
plugins {
|
|
id 'antlr'
|
|
id 'java'
|
|
}
|
|
|
|
targetCompatibility = 11
|
|
sourceCompatibility = 11
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
antlr 'org.antlr:antlr4:4.9.2'
|
|
implementation 'org.antlr:antlr4-runtime:4.9.2'
|
|
}
|
|
|
|
configurations.all {
|
|
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"]
|
|
}
|
|
}
|
|
}
|