aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-09-26 16:46:41 +0300
committerGitHub <noreply@github.com>2022-09-26 16:46:41 +0300
commitee8e73012c1a7f86783920181590489d740af839 (patch)
tree4c286b99ca6e7a62a82fba58d3881b10e0afa7b6 /runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka
parenta816e917995858129ad074409f73e99d3b100318 (diff)
downloaddokka-ee8e73012c1a7f86783920181590489d740af839.tar.gz
dokka-ee8e73012c1a7f86783920181590489d740af839.tar.bz2
dokka-ee8e73012c1a7f86783920181590489d740af839.zip
Extract classpath from `KotlinSharedNativeCompilation` as well (#2664)
* Extract classpath from `KotlinSharedNativeCompilation` as well * Enhance mpp integration test * Enable HMPP for old Kotlin in integration test * Add comments
Diffstat (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt
index b934d206..9ef268f2 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt
@@ -5,7 +5,7 @@ import org.gradle.api.file.FileCollection
import org.jetbrains.dokka.gradle.isAndroidTarget
import org.jetbrains.dokka.utilities.cast
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
-import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeCompilation
+import org.jetbrains.kotlin.gradle.plugin.mpp.AbstractKotlinNativeCompilation
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinCommonCompilation
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -42,7 +42,7 @@ private fun Project.compileClasspathOf(compilation: KotlinCompilation): FileColl
return compilation.compileKotlinTask.cast<KotlinCompile>().classpath
}
- val platformDependencyFiles: FileCollection = (compilation as? KotlinNativeCompilation)
+ val platformDependencyFiles: FileCollection = (compilation as? AbstractKotlinNativeCompilation)
?.target?.project?.configurations
?.findByName(compilation.defaultSourceSet.implementationMetadataConfigurationName)
?: files()