mirror of
https://github.com/irmen/prog8.git
synced 2024-11-22 15:33:02 +00:00
41 lines
722 B
Groovy
41 lines
722 B
Groovy
plugins {
|
|
id 'antlr'
|
|
id 'java'
|
|
}
|
|
|
|
java {
|
|
targetCompatibility = JavaLanguageVersion.of(javaVersion)
|
|
sourceCompatibility = JavaLanguageVersion.of(javaVersion)
|
|
}
|
|
|
|
dependencies {
|
|
antlr 'org.antlr:antlr4:4.13.2'
|
|
implementation 'org.antlr:antlr4-runtime:4.13.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 {
|
|
srcDir "${project.projectDir}/src"
|
|
}
|
|
antlr {
|
|
srcDirs = ["${project.projectDir}/antlr"]
|
|
}
|
|
}
|
|
}
|