aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin/src
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-31 21:08:52 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-09-01 10:37:23 +0200
commit8473fe3fd14978b85a410741ac4da58028b0619a (patch)
tree64c334ff4c9b2f3a9f7650902f9fafd95a5c76a2 /runners/gradle-plugin/src
parentfea09ab440cf69603ebbd23143b90a113dc74f7e (diff)
downloaddokka-8473fe3fd14978b85a410741ac4da58028b0619a.tar.gz
dokka-8473fe3fd14978b85a410741ac4da58028b0619a.tar.bz2
dokka-8473fe3fd14978b85a410741ac4da58028b0619a.zip
Also add KotlinCompile#classpath to final classpath calculation
Diffstat (limited to 'runners/gradle-plugin/src')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt3
1 files changed, 2 insertions, 1 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 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())
}