alexhelder
05/09/2026, 3:48 PMdokka {
dokkaSourceSets.main {
}
}
But this errors in AS Quail (2026.1.1). I am using dokka 2.2.0 and kotlin 2.3.21Chrimaeon
05/09/2026, 4:35 PMChrimaeon
05/09/2026, 4:41 PMfrom is a method of ConfigurableFileCollection . in the screenshot the code highlight looks like an extension function.alexhelder
05/09/2026, 11:13 PM.main like below, it at least compiles:
dokka {
dokkaSourceSets.configureEach {
includes.from("Readme.md")
}
}
I don’t see a .main extensionChrimaeon
05/10/2026, 8:43 PM.named(“main“).
Also I guess you cleared Gradle change and did all the other shenanigans, right?
And is the original version only an IDE issue or actually a Gradle error?Adam Semenenko
05/11/2026, 7:32 AMdokka {
dokkaSourceSets.all {
println("dokkaSourceSet: $name")
}
}alexhelder
05/12/2026, 1:11 PMdokkaSourceSet: debug
dokkaSourceSet: release
dokkaSourceSet: debugAndroidTest
dokkaSourceSet: debugUnitTest
I have a simple multi-module app, and I’m only using dokka in a library module
:app
:filedownload <-- this one has:
alias(libs.plugins.dokka)
dokka { ... } block you posted aboveAdam Semenenko
05/12/2026, 1:21 PMdokkaSourceSets.main {} won't work.
dokkaSourceSets.release {} should work... however, AGP registers the Kotlin source sets lazily, which means it doesn't work https://github.com/Kotlin/dokka/issues/4499
Given that you only have a single 'documentable' source set (release), for your project I'd just do:
dokka {
dokkaSourceSets.configureEach {
// ...
}
}
This will lazily configure all DokkaSourceSets. Which could be problematic if you have multiple documentable source sets.alexhelder
05/12/2026, 2:16 PMsrc/main/kotlin would be the main sourceset, but I must be confusedAdam Semenenko
05/12/2026, 2:18 PMsrc/main/kotlin, belongs to SourceSets with other names.