Hi all. I'm reading over changes for 2.0.0 and hav...
# dokka
s
Hi all. I'm reading over changes for 2.0.0 and have a question about multi-module projects. How do you share Dokka configuration across modules and aggregate documentation from all of the modules? I've tried doing it this way in dokka-convention.gradle.kts, but it doesn't aggregate.
Copy code
plugins {
    id("org.jetbrains.dokka")
}

dokka {
    dokkaSourceSets.configureEach {
        reportUndocumented = false
        skipEmptyPackages = false
        skipDeprecated = true
    }

    dokkaPublications.html {
        outputDirectory.set(layout.buildDirectory.dir("docs"))
    }
}

dependencies {
    dokka(project(":project1"))
    dokka(project(":project2"))
}
And in each modules build.gradle.kts
Copy code
plugins {
  id("dokka-convention")
}
h
What exactly do you want to aggregate? It is common to aggregate all subprojects in the root project. Then you need to apply the convention plugin without aggregating in each subproject.
Or why do you want to aggregate in each subproject? 🤔
s
Yeah I want to aggregate the subprojects into the root project.