prog8/parser/build.gradle

41 lines
681 B
Groovy
Raw Normal View History

plugins {
id 'antlr'
id 'java'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(javaVersion)
}
}
dependencies {
2022-03-05 14:23:26 +00:00
antlr 'org.antlr:antlr4:4.9.3'
implementation 'org.antlr:antlr4-runtime:4.9.3'
}
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
}
}