Add the single-platform target's 'components' to 'project.components'

This commit is contained in:
Sergey Igushkin
2019-02-28 18:16:30 +03:00
parent a19e8fe03e
commit 8fa1630695
@@ -358,6 +358,8 @@ internal abstract class AbstractKotlinPlugin(
configureProjectGlobalSettings(project, kotlinPluginVersion)
registry.register(KotlinModelBuilder(kotlinPluginVersion, null))
project.components.addAll(target.components)
}
private fun rewriteMppDependenciesInPom(target: AbstractKotlinTarget) {
@@ -643,6 +645,8 @@ internal open class KotlinAndroidPlugin(
applyToTarget(kotlinPluginVersion, androidTarget)
registry.register(KotlinModelBuilder(kotlinPluginVersion, androidTarget))
project.whenEvaluated { project.components.addAll(androidTarget.components) }
}
companion object {