Skip to content

how to generate documentation for a multi module gradle build #157

Closed
@encodeering

Description

@encodeering

Hello,

just wanted to ask if you know a working configuration that either

  • aggregates all files from the subprojects or
  • generates a documentation including all subprojects at once

Tried something for the latter and came up with:

task dokka (type: org.jetbrains.dokka.gradle.DokkaTask, overwrite: true) {
    moduleName = "$rootProject.name"
    outputDirectory = "$buildDir/javadoc"
    outputFormat = "html"
    processConfigurations = []
    sourceDirs = files (subprojects.collect {
        p ->
            def path = "modules/${p.name}/src/main/kotlin"

            linkMapping {
                dir = path
                url = "https://....../blob/master/$path"
                suffix = "#L"
            }

            return "$rootProject.rootDir/$path"
    })
}

which works if the processConfigurations property is empty, but wont show any cross-reference in the generated html files then.

Any idea how to configure the classpath of related subprojects?

Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions