Bryan Herbst
11/06/2020, 6:15 PMincludes
doesn’t seem to be getting picked up- what’s the best way to troubleshoot that? I don’t see anything in the logs that appears to be helpful, even when running with --debug
.
I’m running ./gradlew dokkaGfm
Here’s my configuration:
dokkaGfm {
def outputPath = //..
outputDirectory = file(outputPath)
dokkaSourceSets {
named("main") {
jdkVersion = 8
includes.from("README.md", "packages.md")
}
}
}
Neither README.md nor packages.md appear to be getting picked up.
If it makes a difference, this is an Android library module.Marcin Aman
11/09/2020, 10:34 AM./gradlew pTML
) and set breakpoints (probably in toDokkaSourceSetImpl.kt
or DokkaTask.kt
). Then (on the documented repository) you enable debug in gradle using org.gradle.debug = true
and run your task with remote profile on dokka.
If your project is publicly available i can help you with itBryan Herbst
11/09/2020, 2:13 PMBryan Herbst
11/09/2020, 7:10 PMGradleDokkaSourceSetBuilder.build()
and when I hit it this.includes
is empty.
I tried setting a breakpoint in DefaultConfigurableFileCollection.from
to ensure that’s being called as expected, but that’s far too noisy to find the one invocation I’m looking for.Kamil Doległo
11/09/2020, 7:23 PMDokkaGenerator
for example and check whether the configuration nested inside DokkaContext has those files (and JVM version, you could set that to something like 13 to stand out more) set?Bryan Herbst
11/09/2020, 8:18 PM.set()
is working better (e.g. jdkVersion = 8
to jdkVersion.set(8)
).
Now the docs are being generated, but the dokkaGfm
task is failing with “Unexpected classifier JVM”.
Starting to hunt down the cause of that nowKamil Doległo
11/09/2020, 8:21 PMUnexpected classifier JVMprobably means that you have those includes formatted incorrectly
Kamil Doległo
11/09/2020, 8:21 PM# Module <modulename>
or # Package <packagename>
headings as stated here: https://kotlinlang.org/docs/reference/kotlin-doc.htmlBryan Herbst
11/09/2020, 8:26 PMKamil Doległo
11/09/2020, 8:33 PM