prog8/parser/build.gradle

41 lines
683 B
Groovy
Raw Normal View History

plugins {
id 'antlr'
id 'java'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(javaVersion)
}
}
dependencies {
2022-04-24 21:29:15 +00:00
antlr 'org.antlr:antlr4:4.10.1'
implementation 'org.antlr:antlr4-runtime:4.10.1'
}
configurations.all {
exclude group: 'com.ibm.icu', module: 'icu4j'
}
compileJava {
dependsOn tasks.withType(AntlrTask)
}
generateGrammarSource {
outputDirectory = file("src/prog8/parser")
2020-03-10 20:47:15 +00:00
arguments += ["-no-listener","-no-visitor"]
}
2019-01-29 11:09:39 +00:00
2019-01-29 11:09:18 +00:00
sourceSets {
main {
java {
srcDirs = ["${project.projectDir}/src"]
}
2019-01-29 11:09:39 +00:00
antlr {
srcDirs = ["${project.projectDir}/antlr"]
}
2019-01-29 11:09:18 +00:00
}
}