Hi, I'm trying to add Dokka to a project using Gro...
# dokka
t
Hi, I'm trying to add Dokka to a project using Groovy Gradle, and I tried to config the
outputDirectory
and
reportUndocumented
like so, following the instructions in the Dokka wiki, yet it seems to error out:
Copy code
tasks.named("dokkaHtml") {
    outputDirectory.set(buildDir.resolve("dokka"))
    dokkaSourceSets {
        reportUndocumented = true
    }
}
m
There is no resolve on file in groovy. You can use resolve on paths and convert it back to file:
Copy code
outputDirectory.set(file(buildDir.toPath().resolve("output")))