Fix compilation of kotlin-gradle-plugin broken after migration to gradle 4.10

This commit is contained in:
Vyacheslav Gerasimov
2018-09-26 18:33:41 +03:00
parent 7b66a4d295
commit cb398ea6b1
2 changed files with 2 additions and 3 deletions
@@ -76,7 +76,6 @@ internal class KotlinPlatformUsageContext(
override fun getCapabilities(): Set<Capability> = emptySet()
// FIXME this is a stub for a function that is not present in the Gradle API that we compile against
override fun getGlobalExcludes(): Set<ExcludeRule> = emptySet()
}
@@ -5,6 +5,7 @@
package org.jetbrains.kotlin.gradle.plugin.mpp
import org.gradle.api.artifacts.ExcludeRule
import org.gradle.api.artifacts.ModuleDependency
import org.gradle.api.artifacts.ModuleIdentifier
import org.gradle.api.artifacts.ModuleVersionIdentifier
@@ -82,7 +83,6 @@ class KotlinVariantWithMetadataDependency(target: KotlinTarget, private val meta
) : UsageContext by parentUsageContext {
override fun getDependencies() = parentUsageContext.dependencies + additionalDependencies
// FIXME this is a stub for a function that is not present in the Gradle API that we compile against
fun getGlobalExcludes(): Set<Any> = emptySet()
override fun getGlobalExcludes(): Set<ExcludeRule> = emptySet()
}
}