I have a code generator task, which I setup using ...
# dokka
h
I have a code generator task, which I setup using
sourceSets.main.kotlin.src(myTask)
. Why do I also need to connect dokkas tasks? Otherwise I get this error message:
dokkaHtmlPartial uses this output of tasks myTask without declaring an explicit or implicit dependency
c
That’s better asked in #gradle. Gradle 8.0 has this as an error because of incremental builds. with settings a sourceset from the outputs of a task you break the “dependency” chain.
h
Yes, it is related to Gradle 8, but after looking at GitHub, this is a known Dokka issue: https://github.com/Kotlin/dokka/issues/2954
c
Not sure if that will “fix” your issue. That’s dokka internal as far as I understood but you add your own task into a source set, right?
h
It was a combination of two issues, my own generator task which was wrongly added to the kotlin SourceSet and now the Gradle problem when dokka multiModule task depends on another multiModule task.
c
👍🏻