addamsson
12/23/2019, 7:30 PMjvm
in my case). I'm using the Kotlin DSL so I don't have things like jvm {}
<-- this leads to a compile error. What I have now:
tasks {
val dokka by getting(DokkaTask::class) {
outputDirectory = "$rootDir/dokka"
outputFormat = "html"
multiplatform {
jvm { // compile error
}
}
}
}
How do I fix this?
Another problem I have is that I have a multi-module project and i'd like to generate docs for 3 subprojects (but not the root) and I can't seem to find the option to ignore the root project.
Alternatively: can you point me to the project documentation or example projects? The examples on the GitHub page are not enough to figure out how to properly configure projects (especially ones which are using the Kotlin DSL).Kamil Doległo
12/23/2019, 11:27 PMregister(<name>) { <config> }
I’m sorry to hear that you find the documentation lacking. Could you tell me what should we add or change?
As for your second problem:
you have to configure dokka in each project separately or configure dokka once manually (set disableAutoconfiguration = true
and provide appropriate sourceRoots
and classpath
)Kamil Doległo
12/23/2019, 11:27 PMKamil Doległo
12/23/2019, 11:28 PMaddamsson
12/25/2019, 2:37 PMaddamsson
12/25/2019, 2:37 PMaddamsson
12/25/2019, 2:38 PM