Is it expected in v2 to see ```> Task :module-name...
# dokka
e
Is it expected in v2 to see
Copy code
> Task :module-name:logLinkDokkaGeneratePublicationHtml
Generated Dokka HTML publication: localhost URL
for every sub-module, even when I'm running
dokkaGenerate
at the top level with aggregation?
a
literally
localhost URL
, or you've edited the log?
e
Edited! It's a localhost URL that I can open and it correctly displays the site for the single module.
a
haha okay, good
It's expected, because
gradle dokkaGenerate
will run the
dokkaGenerate
task in all projects that have such a task. See 'task selectors' in the docs docs.gradle.org/8.14/userguide/command_line_interface.html#executing_tasks_in_multi_project_builds
If you want to create a single Dokka Publication that aggregates all subprojects into one final output, it'd be better to run the specific task, like
gradle :dokkaGenerate
if the root project is aggregating (or if the aggregating project is in a subproject, then use the subproject path, e.g.
gradle  :subproject-docs:dokkaGenerate
)
e
Indeed, I had forgotten about
:
😭 Now the migration is done. Thanks for the help!
a
no probs!