import org.jetbrains.dokka.gradle.DokkaTaskPartial plugins { kotlin("jvm") id("org.jetbrains.dokka") } // configuration specific to this subproject. // notice the use of Partial task tasks.withType().configureEach { dokkaSourceSets { configureEach { includes.from("ModuleB.md") } } }