Skip to content

Commit

Permalink
Add task dependency for dokka.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Mar 19, 2024
1 parent 7aa37a8 commit 4f744c1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bluesky/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import com.android.build.gradle.internal.tasks.factory.dependsOn
import org.jetbrains.dokka.gradle.AbstractDokkaTask
import sh.christian.ozone.api.generator.ApiReturnType

plugins {
Expand All @@ -25,5 +25,9 @@ lexicons {
}
}

tasks.apiDump.dependsOn(tasks.assemble)
tasks.apiCheck.dependsOn(tasks.assemble)
tasks.apiDump.configure { dependsOn(tasks.assemble) }
tasks.apiCheck.configure { dependsOn(tasks.assemble) }

tasks.withType<AbstractDokkaTask>().configureEach {
dependsOn(tasks.generateLexicons)
}

0 comments on commit 4f744c1

Please sign in to comment.