Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaganeh committed May 4, 2024
1 parent 34b1a98 commit 79e7bf8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions buildSrc/src/main/kotlin/AirshipDokkaPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ class AirshipDokkaPlugin : Plugin<Project> {
tasks.withType<DokkaTaskPartial>().configureEach {
dependencies.addDokkaAndroidPlugin()

try {
val kaptReleaseKotlin = tasks.named("kaptReleaseKotlin")
mustRunAfter(kaptReleaseKotlin)
} catch (_: Exception) {
// Ignore if the task doesn't exist
}

try {
val kaptDebugKotlin = tasks.named("kaptDebugKotlin")
mustRunAfter(kaptDebugKotlin)
} catch (_: Exception) {
// Ignore if the task doesn't exist
}

moduleVersion.set(project.version.toString())
moduleName.set(project.name)

Expand Down

0 comments on commit 79e7bf8

Please sign in to comment.