I have a multi-platform project with sources in sr...
# dokka
i
I have a multi-platform project with sources in src/androidMain/kotlin, src/commonMain/kotlin and src/jvmMain/kotlin. The dokka configuration looks like this:
Copy code
tasks {
    val dokka by getting(DokkaTask::class) {
        outputFormat = "html"
        multiplatform {
            val global by creating {
                reportUndocumented = true
                includes =
                    listOf("src/commonMain/kotlin/com/ingonoka/qcat/module.md")
            }

            val common by creating {
                targets = listOf("Common")
                platform = "common"

                sourceLink {
                    path = "src/commonMain/kotlin"
                    url = "<https://github.com/ingonoka/QCAT-LIB-MP/blob/master/qcatlib/src/commonMain/kotlin>"
                    lineSuffix = "#L"
                }

            }

            val jvm by creating {
                targets = listOf("Jvm")
                platform = "jvm"

                sourceLink {
                    path = "src/jvmMain/kotlin"
                    url = "<https://github.com/ingonoka/QCAT-LIB-MP/blob/master/qcatlib/src/jvmMain/kotlin>"
                    lineSuffix = "#L"
                }

            }

            val android by creating {
                targets = listOf("Android")
                platform = "android"

                sourceLink {
                    path = "src/androidMain/kotlin"
                    url = "<https://github.com/ingonoka/QCAT-LIB-MP/blob/master/qcatlib/src/androidMain/kotlin>"
                    lineSuffix = "#L"
                }
            }

        }

    }
I am expecting source links to be created for all functions, but only classes that are unique to android or JVM have a link. There are no source links for any function in
commonMain
. Is that intentional or am I making a mistake here?
k
Oh, that’s not good. It’s strange to be honest, because common is not treated differently than other platforms. Could you create a bug report on GitHub for that please?
i
Done
k
Thanks and sorry for the bug