From f221dbf606b12034a556974fda884708b964d975 Mon Sep 17 00:00:00 2001 From: vmishenev Date: Fri, 6 Oct 2023 20:01:14 +0300 Subject: [PATCH] Fix for Android target due to KT-33893 --- .../org/jetbrains/dokka/gradle/kotlin/kotlinClasspathUtils.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 8ced1b8d4c..395a1f1f18 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 @@ -38,6 +38,10 @@ private fun KotlinCompilation.compileClasspathOf(project: Project): FileCollecti } private fun KotlinCompilation.newCompileClasspathOf(project: Project): FileCollection { + if (this.target.isAndroidTarget()) { // Workaround for https://youtrack.jetbrains.com/issue/KT-33893 + return this.classpathOf(project) + } + val result = project.objects.fileCollection() result.from({ compileDependencyFiles })