Allow multiple expectedBy dependencies in Gradle MPP support

Issue #KT-22864 Fixed
This commit is contained in:
Sergey Igushkin
2018-02-15 15:13:29 +03:00
parent f23b5103ec
commit 37b34cff25
17 changed files with 134 additions and 6 deletions
@@ -98,12 +98,6 @@ open class KotlinPlatformImplementationPluginBase(platformName: String) : Kotlin
private fun addCommonProject(commonProject: Project, platformProject: Project) {
commonProjects.add(commonProject)
if (commonProjects.size > 1) {
throw GradleException(
"Platform project $platformProject has more than one " +
"'$EXPECTED_BY_CONFIG_NAME'${if (implementConfigurationIsUsed) "/'$IMPLEMENT_CONFIG_NAME'" else ""} " +
"dependency: ${commonProjects.joinToString()}")
}
commonProject.whenEvaluated {
if (!commonProject.pluginManager.hasPlugin("kotlin-platform-common")) {