https://kotlinlang.org logo
#dokka
Title
# dokka
j

Ji Sungbin

08/20/2022, 10:50 AM
Hi, I think the DokkaTaskPartial option is don’t applied when using dokkaHtmlMultiModule. My gradle code:
Copy code
// in project root gradle's allprojects scope

tasks.withType<DokkaTaskPartial>().configureEach {
    moduleName.set("Duckie-QuackQuack-Sub")
    outputDirectory.set(file("$rootDir/documents/dokka"))
    suppressInheritedMembers.set(true)
    dokkaSourceSets.configureEach {
        includeNonPublic.set(true)
        jdkVersion.set(11)
    }
    pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
        footerMessage =
            """made with <span style="color: $duckieOrange;">❤</span> by <a href="<https://duckie.team/>">Duckie</a>"""
    }
}
tasks.dokkaHtmlMultiModule.configure {
    moduleName.set("Duckie-QuackQuack-Root")
    outputDirectory.set(file("$rootDir/documents/dokka"))
    pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
        footerMessage =
            """made with <span style="color: $duckieOrange;">❤</span> by <a href="<https://duckie.team/>">Duckie</a>"""
    }
}
full gradle code is here. What’s wrong with my code?
g

Gleb Minaev

08/20/2022, 2:24 PM
I just recently got similar issue. Try to cover all the code in additional
afterEvaluate
block, i.e.
allproject { afterEvaluate { /* Past code above here */ } }
.
j

Ji Sungbin

08/20/2022, 2:25 PM
ohh thanks Gleb Minaev!
14 Views