[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:
committed by
Space Team
parent
60939a8fe6
commit
731d3bf602
+1
-4
@@ -47,10 +47,7 @@ internal class MetadataDependencyTransformationTaskInputs(
|
|||||||
|
|
||||||
@Transient // Only needed for configuring task inputs
|
@Transient // Only needed for configuring task inputs
|
||||||
private val participatingSourceSetsLazy: Lazy<Set<KotlinSourceSet>>? = lazy {
|
private val participatingSourceSetsLazy: Lazy<Set<KotlinSourceSet>>? = lazy {
|
||||||
kotlinSourceSet.internal.withDependsOnClosure.toMutableSet().apply {
|
kotlinSourceSet.internal.withDependsOnClosure
|
||||||
if (any { it.name == KotlinSourceSet.COMMON_MAIN_SOURCE_SET_NAME })
|
|
||||||
add(project.kotlinExtension.sourceSets.getByName(KotlinSourceSet.COMMON_MAIN_SOURCE_SET_NAME))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private val participatingSourceSets: Set<KotlinSourceSet>
|
private val participatingSourceSets: Set<KotlinSourceSet>
|
||||||
|
|||||||
Reference in New Issue
Block a user