Problem
After migrating to AGP 9.1.0, Dokka 2.1.0 shows compatibility warnings during configuration:
class org.jetbrains.dokka.gradle.adapters.AndroidExtensionWrapper could not get Android Extension for project
Current Workaround
- Wrapped Dokka configuration in
afterEvaluate
- Using
dokkaSourceSets.configureEach instead of dokkaSourceSets.named("main")
- Located in:
build-logic/convention/src/main/kotlin/DokkaConventionPlugin.kt
Solution
Upgrade to Dokka 2.2.0-Beta when it becomes stable, which includes proper AGP 9.0.0 support with Built-in Kotlin.
References
Files to Update
gradle/libs.versions.toml: Change dokka = "2.1.0" to dokka = "2.2.0-Beta" (or stable when available)
build-logic/convention/src/main/kotlin/DokkaConventionPlugin.kt: Remove workarounds if no longer needed
Labels
- enhancement
- dependencies
- documentation
Problem
After migrating to AGP 9.1.0, Dokka 2.1.0 shows compatibility warnings during configuration:
Current Workaround
afterEvaluatedokkaSourceSets.configureEachinstead ofdokkaSourceSets.named("main")build-logic/convention/src/main/kotlin/DokkaConventionPlugin.ktSolution
Upgrade to Dokka 2.2.0-Beta when it becomes stable, which includes proper AGP 9.0.0 support with Built-in Kotlin.
References
Files to Update
gradle/libs.versions.toml: Changedokka = "2.1.0"todokka = "2.2.0-Beta"(or stable when available)build-logic/convention/src/main/kotlin/DokkaConventionPlugin.kt: Remove workarounds if no longer neededLabels