2.2.0-Beta
Dokka Gradle Plugin
Starting from Dokka 2.1.0, the new Dokka Gradle Plugin is enabled by default. The documentation on kotlinlang.org has been updated accordingly:
- See Get started with Dokka for instructions on adding Dokka to a project
- See Migrate to Dokka Gradle plugin v2 for migrating from the old plugin
Dokka 2.2.0-Beta introduces multiple improvements and fixes:
Note: most of the following changes affect only the new Dokka Gradle Plugin, enabled by default since Dokka 2.1.0
- Compatibility with Android Gradle Plugin 9.0.0, including Built-in Kotlin. (#4231, #4295, #4412)
- Android Gradle Library Plugin for KMP is now properly supported. (#4359, #4366)
- Support the new Kotlin Gradle Plugin API to work with generated sources (, )
Analysis improvements
Starting from Dokka 2.1.0, the K2 analysis is enabled by default. K2 analysis is now stable, enabled by default, and fully migrated to the new shared Analysis API. This includes the migration to the new KDoc resolution API within the Analysis API.
Dokka 2.2.0-Beta introduces multiple improvements and fixes:
Note: most of the following changes affect only Dokka's K2 analysis, enabled by default since Dokka 2.1.0
- Allow
actualdeclarations to automatically inherit their documentation fromexpectcounterparts in multiplatform projects (#2493, #4245, #4351) - Link resolution improvements:
Kotlin playground runnable samples extracted into a separate plugin
Starting with Dokka 2.2.0-Beta, Kotlin Playground–based rendering of @sample KDoc references is disabled by default. Samples are now rendered as non-runnable code blocks.
Support for interactive, runnable samples has been extracted into a separate plugin with configurable options, including custom Playground scripts and server URLs. See the plugin README.md for setup instructions.
Other changes and bugfixes
- Fix unnecessary logging for unresolved links in module documentation (#4413)
- Fix CLI runner to force use of the latest stdlib (#4324)
- Use the shadowed stdlib in the Dokka Maven Plugin (#4229)
Feedback
We would appreciate your feedback!
- Please report any feedback or problems https://kotl.in/dokka-issues
- Chat with the community visit #dokka in https://kotlinlang.slack.com/ (To sign up visit https://kotl.in/slack)