diff options
Diffstat (limited to 'runners/gradle-plugin/src/main')
-rw-r--r-- | runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt | 2 |
1 files changed, 2 insertions, 0 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 2770153d..1d0fa4a3 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 @@ -25,6 +25,7 @@ internal fun Project.classpathOf(sourceSet: KotlinSourceSet): FileCollection { private fun Project.compileClasspathOf(compilation: KotlinCompilation): FileCollection { if (compilation.target.isAndroidTarget()) { // This is a workaround for https://youtrack.jetbrains.com/issue/KT-33893 + @Suppress("DEPRECATION") // for compatibility return compilation.compileKotlinTask.cast<KotlinCompile>().classpath } @@ -34,5 +35,6 @@ private fun Project.compileClasspathOf(compilation: KotlinCompilation): FileColl ?: files() return compilation.compileDependencyFiles + platformDependencyFiles + + @Suppress("DEPRECATION") // for compatibility (compilation.compileKotlinTask.run { this as? KotlinCompile }?.classpath ?: files()) } |