Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cacay committed Sep 14, 2024
1 parent 66164da commit 5509b89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies {
/** Compilation */

jflex {
encoding.set(Charsets.UTF_8.name())
encoding = Charsets.UTF_8.name()
}

val compileCup by tasks.registering(CompileCupTask::class)
Expand All @@ -61,7 +61,7 @@ sourceSets {
}

tasks.compileKotlin.configure {
dependsOn(tasks.withType<org.xbib.gradle.plugin.JFlexTask>())
dependsOn(tasks.withType<org.xbib.gradle.plugin.jflex.JFlexTask>())
dependsOn(tasks.withType<CompileCupTask>())
}

Expand All @@ -76,7 +76,7 @@ tasks.withType<Test>().configureEach {
// remove if/when Dokka fixes this issue.
tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach {
dependsOn(compileCup)
dependsOn(tasks.withType<org.xbib.gradle.plugin.JFlexTask>())
dependsOn(tasks.withType<org.xbib.gradle.plugin.jflex.JFlexTask>())
}

abstract class CompileCupTask : DefaultTask() {
Expand Down

0 comments on commit 5509b89

Please sign in to comment.