Support multiple expectedBy dependencies when building -Xcommon-sources list

`addCommonSourceSetToPlatformSourceSet` may be called multiple times during
a platform project configuration.
This commit is contained in:
Ilya Gorbunov
2018-08-28 02:00:48 +03:00
parent b2d9254bfd
commit 36936d252c
@@ -156,7 +156,7 @@ open class KotlinPlatformImplementationPluginBase(platformName: String) : Kotlin
val commonSources = getKotlinSourceDirectorySetSafe(commonSourceSet)!!
platformTask.source(commonSources)
platformTask.commonSourceSet = commonSources
platformTask.commonSourceSet += commonSources
}
}