Skip to content

Commit

Permalink
Fix for Android target due to KT-33893
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Oct 6, 2023
1 parent 4e0a9ad commit f221dbf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand Down

0 comments on commit f221dbf

Please sign in to comment.