25 lines
549 B
Groovy
25 lines
549 B
Groovy
plugins {
|
|
id("org.openrndr.extra.convention.kotlin-jvm")
|
|
id("antlr")
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir("build/generated-src/antlr")
|
|
}
|
|
}
|
|
}
|
|
|
|
generateGrammarSource {
|
|
maxHeapSize = "64m"
|
|
arguments += ["-visitor", "-long-messages"]
|
|
outputDirectory = file("${project.buildDir}/generated-src/antlr/org/openrndr/extra/kotlin/antlr".toString())
|
|
}
|
|
|
|
dependencies {
|
|
antlr(libs.antlr.core)
|
|
implementation(libs.antlr.runtime)
|
|
}
|
|
|
|
tasks.getByName("compileKotlin").dependsOn("generateGrammarSource") |