Skip to content

Conversation

AndreaBrighi
Copy link

Dokka V2 Changes

The new version of Dokka V2 introduces several updates, including a change in the task name used to generate documentation.

In Dokka V2, the documentation is generated using the dokkaGenerate task.
By default, Dokka V2 outputs HTML documentation.

However, it is now possible to configure Dokka V2 to generate documentation in HTML, Javadoc, or both formats simultaneously.
When both the HTML and Javadoc plugins are applied, Dokka V2 creates multiple tasks—for example, dokkaGeneratePublicationHtml and dokkaGeneratePublicationJavadoc.

To handle this scenario correctly, this PR updates the plugin logic to prioritize the dokkaGeneratePublicationHtml task when both plugins are present.

See the official Dokka migration guide about documentation output format for the full table of task names and output formats.

Test Updates

The expected test output has been updated accordingly to reflect Dokka V2’s new task names and behavior.

…tionHtml if both the HTML and Javadoc plugins are applied) instead of dokkaHtml (deprecated in Dokka 2.0).

Removed DokkaTask deprecated in Dokka 2.0 too
…onHtml instead of dokkaHtml (deprecated in Dokka 2.0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant