From 79e7bf8ef6cfac737a91b5aa9b0baa854da0f57a Mon Sep 17 00:00:00 2001 From: Josh Yaganeh <319444+jyaganeh@users.noreply.github.com> Date: Fri, 3 May 2024 18:01:29 -0700 Subject: [PATCH] Fix docs build --- buildSrc/src/main/kotlin/AirshipDokkaPlugin.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/buildSrc/src/main/kotlin/AirshipDokkaPlugin.kt b/buildSrc/src/main/kotlin/AirshipDokkaPlugin.kt index cf5c35d3c..15f18e8f2 100644 --- a/buildSrc/src/main/kotlin/AirshipDokkaPlugin.kt +++ b/buildSrc/src/main/kotlin/AirshipDokkaPlugin.kt @@ -75,6 +75,20 @@ class AirshipDokkaPlugin : Plugin { tasks.withType().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)