From 8473fe3fd14978b85a410741ac4da58028b0619a Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Mon, 31 Aug 2020 21:08:52 +0200 Subject: Also add KotlinCompile#classpath to final classpath calculation --- .../kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka') 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 295cacb6..2770153d 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 @@ -33,5 +33,6 @@ private fun Project.compileClasspathOf(compilation: KotlinCompilation): FileColl ?.findByName(compilation.defaultSourceSet.implementationMetadataConfigurationName) ?: files() - return compilation.compileDependencyFiles + platformDependencyFiles + return compilation.compileDependencyFiles + platformDependencyFiles + + (compilation.compileKotlinTask.run { this as? KotlinCompile }?.classpath ?: files()) } -- cgit