Skip to content

Commit

Permalink
Refactor Gradle Runner
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed May 8, 2023
1 parent 6665b3d commit 168d4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.jetbrains.dokka.gradle

import com.android.build.api.dsl.AndroidSourceSet
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet

/**
Expand All @@ -13,7 +12,7 @@ fun GradleDokkaSourceSetBuilder.dependsOn(sourceSet: KotlinSourceSet) {
/**
* Convenient override to **append** source sets to [GradleDokkaSourceSetBuilder.dependentSourceSets]
*/
fun GradleDokkaSourceSetBuilder.dependsOn(sourceSet: AndroidSourceSet) {
fun GradleDokkaSourceSetBuilder.dependsOn(@Suppress("DEPRECATION") sourceSet: com.android.build.gradle.api.AndroidSourceSet) {
dependsOn(DokkaSourceSetID(sourceSet.name))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private fun KotlinCompilation.compileClasspathOf(project: Project): FileCollecti
return this.classpathOf(project)
}

@Suppress("DEPRECATION")
val platformDependencyFiles: FileCollection = (this as? AbstractKotlinNativeCompilation)
?.target?.project?.configurations
?.findByName(this.defaultSourceSet.implementationMetadataConfigurationName)
Expand Down

0 comments on commit 168d4e8

Please sign in to comment.