prog8/parser/build.gradle

42 lines
682 B
Groovy
Raw Normal View History

plugins {
id 'antlr'
id 'java'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(javaVersion)
}
}
dependencies {
antlr 'org.antlr:antlr4:4.12.0'
implementation 'org.antlr:antlr4-runtime:4.12.0'
}
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
2023-09-08 19:29:49 +00:00
2019-01-29 11:09:18 +00:00
sourceSets {
main {
java {
2023-09-08 19:29:49 +00:00
srcDir "${project.projectDir}/src"
2019-01-29 11:09:18 +00:00
}
2019-01-29 11:09:39 +00:00
antlr {
2023-09-08 19:29:49 +00:00
srcDirs = ["${project.projectDir}/antlr"]
2019-01-29 11:09:39 +00:00
}
2019-01-29 11:09:18 +00:00
}
}