Fix CCE under composite mode

This commit essentially reverts change in IdeaResolverForProject made in
423aeb9a08

The issue is that 'platform.findAnalyzerServices' may return non-
CompositeAnalyzerServices even under composite analysis mode, when
platform is single-target (e.g. 'JvmAnalyzerServices' for JVM-only)

^KT-36978
This commit is contained in:
Dmitry Savvinov
2020-02-25 14:40:45 +03:00
parent b21a9476c0
commit 66ef49cecc
@@ -113,7 +113,7 @@ class IdeaResolverForProject(
commonPlatformParameters,
jvmPlatformParameters,
platform,
platform.findAnalyzerServices(projectContext.project) as CompositeAnalyzerServices
CompositeAnalyzerServices(platform.componentPlatforms.map { it.findAnalyzerServices() })
)
}
}