From ee8e73012c1a7f86783920181590489d740af839 Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Mon, 26 Sep 2022 16:46:41 +0300 Subject: 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 --- .../kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runners/gradle-plugin/src/main') 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().classpath } - val platformDependencyFiles: FileCollection = (compilation as? KotlinNativeCompilation) + val platformDependencyFiles: FileCollection = (compilation as? AbstractKotlinNativeCompilation) ?.target?.project?.configurations ?.findByName(compilation.defaultSourceSet.implementationMetadataConfigurationName) ?: files() -- cgit