Skip to content

Commit

Permalink
KT-71784 Fix classpath for KMP shared source sets (#3942)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
adam-enko and whyoleg authored Dec 5, 2024
1 parent 17871a0 commit 2b63314
Show file tree
Hide file tree
Showing 25 changed files with 248 additions and 142 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2b63314

Please sign in to comment.