Hey, how can I configure Dokka in gradle for a mul...
# dokka
j
Hey, how can I configure Dokka in gradle for a multi-module project with cross-dependencies? I've seen this in the README:
Copy code
dokka {
    // In case of a Gradle multiproject build, you can include subprojects here to get merged documentation
    // Note however, that you have to have the Kotlin plugin available in the root project and in the subprojects
    subProjects = ["subproject1", "subproject2"]
...
}
But the comment seems to suggest that this will merge the documentation... Will it still generate an independent dokka jar for each module? Do I still have to configure dokka again in each module for cross-module dependency?
k
Yes, if you want to have independent documentation for each module, you have to configure dokka again in every subproject. You can then create links between them using
externalDocumentationLink
s
👍 1
j
Are there any plans to automate these
externalDocumentationLink
s for local subprojects dependencies? It seems to me that this will be necessary in most projects having cross-module dependencies, and I don't see why it could be a problem to have them configured by default. Would there be any issue with that (apart from implementation time ofc)?