prog8/parser/build.gradle

42 lines
675 B
Groovy
Raw Normal View History

plugins {
id 'antlr'
id 'java'
}
targetCompatibility = 11
sourceCompatibility = 11
2019-08-26 21:27:45 +02:00
repositories {
mavenCentral()
}
dependencies {
antlr 'org.antlr:antlr4:4.9.2'
implementation 'org.antlr:antlr4-runtime:4.9.2'
}
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
2019-01-29 12:09:18 +01:00
sourceSets {
main {
java {
srcDirs = ["${project.projectDir}/src"]
}
2019-01-29 12:09:39 +01:00
antlr {
srcDirs = ["${project.projectDir}/antlr"]
}
2019-01-29 12:09:18 +01:00
}
}