Skip to content

Commit 81a9ec6

Browse files
authored
Fix dokkaJavadoc publishing task
`dokkaJavadoc` relies implicitly on `kaptDebugKotlin` and `kaptReleaseKotlin` leading to Gradle failing the build. Adding explicit dependency as the message suggest fixes the issue.
1 parent 3261aff commit 81a9ec6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

buildSrc/src/main/kotlin/buildsrc/convention/android-library.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ dependencies {
6868
androidTestUtil("androidx.test:orchestrator:${Deps.Versions.androidxOrchestrator}")
6969
}
7070

71+
// Fix: Task 'dokkaJavadoc' uses this output of task 'kaptReleaseKotlin' without declaring an explicit or implicit dependency.
72+
tasks.dokkaJavadoc.configure {
73+
mustRunAfter(tasks.named("kaptDebugKotlin"))
74+
mustRunAfter(tasks.named("kaptReleaseKotlin"))
75+
}
76+
7177
val javadocJar by tasks.registering(Jar::class) {
7278
from(tasks.dokkaJavadoc)
7379
archiveClassifier.set("javadoc")

0 commit comments

Comments
 (0)