aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-04-11 20:28:57 +0300
committerGitHub <noreply@github.com>2022-04-11 20:28:57 +0300
commit21a50e214f3d834bd51525807929e1adb9d0fe6c (patch)
tree2653cff530c2523f1211c9e76923fd157c8e684a /runners/gradle-plugin/src/main
parentfe87b368da4ce8b5b17d7f49d9231a1764780e29 (diff)
downloaddokka-21a50e214f3d834bd51525807929e1adb9d0fe6c.tar.gz
dokka-21a50e214f3d834bd51525807929e1adb9d0fe6c.tar.bz2
dokka-21a50e214f3d834bd51525807929e1adb9d0fe6c.zip
Fix classpath in HMPP (#2431)
Diffstat (limited to 'runners/gradle-plugin/src/main')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinCompilationUtils.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinCompilationUtils.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinCompilationUtils.kt
index 8fec309a..fdb4642c 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinCompilationUtils.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinCompilationUtils.kt
@@ -21,12 +21,13 @@ internal fun Project.allCompilationsOf(
}
internal fun Project.compilationsOf(sourceSet: KotlinSourceSet): List<KotlinCompilation> {
- return allCompilationsOf(sourceSet).filter { compilation -> sourceSet in compilation.kotlinSourceSets }
+ //KT-45412 Make sure .kotlinSourceSets and .allKotlinSourceSets include the default source set
+ return allCompilationsOf(sourceSet).filter { compilation -> sourceSet in compilation.kotlinSourceSets || sourceSet == compilation.defaultSourceSet }
}
private fun KotlinMultiplatformExtension.allCompilationsOf(sourceSet: KotlinSourceSet): List<KotlinCompilation> {
val allCompilations = targets.flatMap { target -> target.compilations }
- return allCompilations.filter { compilation -> sourceSet in compilation.allKotlinSourceSets }
+ return allCompilations.filter { compilation -> sourceSet in compilation.allKotlinSourceSets || sourceSet == compilation.defaultSourceSet }
}
private fun KotlinSingleTargetExtension.allCompilationsOf(sourceSet: KotlinSourceSet): List<KotlinCompilation> {