Skip to content

Commit 2b63314

Browse files
adam-enkowhyoleg
andauthored
KT-71784 Fix classpath for KMP shared source sets (#3942)
DGP fetches information from KGP to automatically setup the DokkaSourceSets. In KMP projects DGP incorrectly aggregated the classpath for 'parent' source sets (e.g. commonMain) from all children. This sometimes worked, but sometimes failed. For each KotlinSourceSet (KSS) DGP needs to use _all_ compilations to determine whether they are 'publishable' ('test' source sets are not publishable by default), and the Kotlin target (for example. DGP needs to use the specific compilations for a KSS to get the exact classpath for Dokka. This PR makes DGP track all and specific compilations separately. Fix [KT-71784](https://youtrack.jetbrains.com/issue/KT-71784) Fix #3860 --- Co-authored-by: Oleg Yukhnevich <whyoleg@gmail.com>
1 parent 17871a0 commit 2b63314

File tree

25 files changed

+248
-142
lines changed

25 files changed

+248
-142
lines changed

dokka-integration-tests/gradle/projects/it-android-compose/expectedData/html/core/index.html

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dokka-integration-tests/gradle/projects/it-android-compose/expectedData/html/core/navigation.html

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dokka-integration-tests/gradle/projects/it-android-compose/expectedData/html/core/org.dokka.it.android.kmp.core/-menu-item/-menu-item.html

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dokka-integration-tests/gradle/projects/it-android-compose/expectedData/html/core/org.dokka.it.android.kmp.core/-menu-item/image-vector.html

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)