[Gradle] Remove legacy participatingSourceSets logic

It is unknown why we would need to include commonMain source set
explicitly from kotlinExtension.sourceSets.

Few assumptions:
* common main source set loaded somehow from different classloader
* compatibility with legacy multipaltform plugins

^KT-58471 Verification Pending
This commit is contained in:
Anton Lakotka
2023-05-24 11:36:59 +02:00
committed by Space Team
parent 60939a8fe6
commit 731d3bf602
@@ -47,10 +47,7 @@ internal class MetadataDependencyTransformationTaskInputs(
@Transient // Only needed for configuring task inputs
private val participatingSourceSetsLazy: Lazy<Set<KotlinSourceSet>>? = lazy {
kotlinSourceSet.internal.withDependsOnClosure.toMutableSet().apply {
if (any { it.name == KotlinSourceSet.COMMON_MAIN_SOURCE_SET_NAME })
add(project.kotlinExtension.sourceSets.getByName(KotlinSourceSet.COMMON_MAIN_SOURCE_SET_NAME))
}
kotlinSourceSet.internal.withDependsOnClosure
}
private val participatingSourceSets: Set<KotlinSourceSet>