Has anyone faced/resolved issues with Dokka V2 multi-module Javadoc generation? The HTML generation works for my composite build dependencies, but Javadoc generation produces empty directories.
pardom
08/11/2025, 6:26 PM
The merging task does generate the docs for each dependency, but the merging itself fails to produce any outputs.
pardom
08/11/2025, 6:28 PM
Looking at
dokka-configuration.json
in the parent project's build dir, I can see that
sourceOutputDirectory
is correct for all the modules.
a
Adam Semenenko
08/11/2025, 6:45 PM
Dokka's Javadoc just doesn't support multimodule aggregation. Dokka HTML is the only format that supports aggregation.
p
pardom
08/11/2025, 6:46 PM
Is support planned? The logs and outputs indicate it's attempting to do the merge.
pardom
08/11/2025, 6:47 PM
Copy code
=== TIME MEASUREMENT ===
Initializing plugins: 229
Validity check: 1
Creating documentation models: 732
Transforming documentation model before merging: 6
Merging documentation models: 0
Transforming documentation model after merging: 11
Creating pages: 14
Transforming pages: 1
Rendering: 1430
pardom
08/11/2025, 7:11 PM
I worked around this for now by adding to the sourceSets