[Gradle] KotlinNativeTasks: buildDependencies: Filter constraint dependencies

^KT-57531 Verification Pending
This commit is contained in:
Sebastian Sellmair
2023-03-23 14:52:42 +01:00
committed by Space Team
parent 3f4b37693f
commit 89df0ed213
@@ -560,6 +560,7 @@ internal class ExternalDependenciesBuilder(
val plainModules: MutableMap<KResolvedDependencyId, KResolvedDependency> = mutableMapOf()
fun processModule(resolvedDependency: DependencyResult, incomingDependencyId: KResolvedDependencyId) {
if (resolvedDependency !is ResolvedDependencyResult) return
if (resolvedDependency.isConstraint) return
val requestedModule = resolvedDependency.requested as? ModuleComponentSelector ?: return
val selectedModule = resolvedDependency.selected