Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.