Skip to content

Commit

Permalink
chore: 🤖 disable antlr grammar generate tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanonymous-GitHub committed Jul 15, 2024
1 parent a60e551 commit 6de4c83
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@ dependencies {
testImplementation(libs.kotlin.test.junit5)
}

internal val projectRootLocation: String = layout.projectDirectory.toString()
internal val forcedAntlrPackageName = "$group.model.lang"
internal val antlrGenFilesLocation =
file(
"$projectRootLocation/src/main/java/" +
forcedAntlrPackageName.replace('.', '/')
)

tasks {
generateGrammarSource {
outputDirectory = antlrGenFilesLocation
arguments = listOf("-package", forcedAntlrPackageName)
// Since this project uses the ANTLR only for its interfaces, we don't need to generate the sources.
enabled = false
}
generateTestGrammarSource {
// Since this project uses the ANTLR only for its interfaces, we don't need to generate the sources.
enabled = false
}

test {
Expand Down

0 comments on commit 6de4c83

Please sign in to comment.