prog8/parser/build.gradle
Irmen de Jong 5b9cc9592f removed kotlin.reflection dependency
optimized gradle build now using shadowjar
2019-07-09 08:27:47 +02:00

46 lines
903 B
Groovy

plugins {
id 'antlr'
id 'java'
}
repositories {
mavenCentral()
}
configurations {
// strange antlr plugin issue, see https://github.com/gradle/gradle/issues/820
// this avoids linking in the complete antlr binary jar
compile {
extendsFrom = extendsFrom.findAll { it != configurations.antlr }
}
}
dependencies {
antlr 'org.antlr:antlr4:4.7.2'
compile 'org.antlr:antlr4-runtime:4.7.2'
// antlr('org.antlr:antlr4:4.7.2') {
// exclude group: 'com.ibm.icu', module: 'icu4j'
// }
}
compileJava {
dependsOn tasks.withType(AntlrTask)
}
generateGrammarSource {
outputDirectory = file("src/prog8/parser")
arguments += ["-no-listener","-no-visitor"]
}
sourceSets {
main {
java {
srcDirs = ["${project.projectDir}/src"]
}
antlr {
srcDirs = ["${project.projectDir}/antlr"]
}
}
}