prog8/parser/build.gradle

41 lines
722 B
Groovy
Raw Normal View History

plugins {
id 'antlr'
id 'java'
}
java {
2024-05-18 18:25:44 +00:00
targetCompatibility = JavaLanguageVersion.of(javaVersion)
sourceCompatibility = JavaLanguageVersion.of(javaVersion)
}
dependencies {
2024-08-19 10:47:18 +00:00
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")
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
}
}