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 {
2023-09-14 21:11:55 +02:00
antlr 'org.antlr:antlr4:4.13.1'
implementation 'org.antlr:antlr4-runtime:4.13.1'
}
configurations.all {
exclude group: 'com.ibm.icu', module: 'icu4j'
}
compileJava {
dependsOn tasks.withType(AntlrTask)
}
generateGrammarSource {
outputDirectory = file("src/prog8/parser")
2020-03-10 21:47:15 +01:00
arguments += ["-no-listener","-no-visitor"]
}
2019-01-29 12:09:39 +01:00
2023-09-08 21:29:49 +02:00
2019-01-29 12:09:18 +01:00
sourceSets {
main {
java {
2023-09-08 21:29:49 +02:00
srcDir "${project.projectDir}/src"
2019-01-29 12:09:18 +01:00
}
2019-01-29 12:09:39 +01:00
antlr {
2023-09-08 21:29:49 +02:00
srcDirs = ["${project.projectDir}/antlr"]
2019-01-29 12:09:39 +01:00
}
2019-01-29 12:09:18 +01:00
}
}