I have update my Dokka version from 2.0.0 to 2.1.0...
# dokka
e
I have update my Dokka version from 2.0.0 to 2.1.0. I didn’t have any specific configuration for my project (which is a multimodule project). I used to just run
./gradlew dokkaHtmlMultiModule
and there was an aggregated doc being generated at
/build/dokka/htmlMultiModule
. Now when I try to run the same command I get the following:
Cannot run Dokka V1 tasks when V2 mode is enabled.
Dokka Gradle plugin V1 mode is deprecated, and scheduled to be removed in Dokka v2.2.0.
To finish migrating to V2 mode, please check the migration guide https://kotl.in/dokka-gradle-migration
Suggestion: Use
dokkaGenerate
or
dokkaGenerateHtml
tasks instead.
If I run any of those tasks, I don’t get the generated documentation anymore. I also cannot see any relevant task that aggregates the documentation for all modules. Is there an equivalent of
dokkaHtmlMultiModule
that I can use?
Ok, found this sample here: https://github.com/Kotlin/dokka/tree/master/examples/gradle-v2/multimodule-example There are a few changes required
o
Yeah, with the new Gradle plugin, you need to configure aggregation explicitly.