[Gradle] Remove unnecessary participatingSourceSetsLazy
The `withDependsOnClosure` is live object, it is ok to request it early as long as other properties will read data from it at the end of the configuration. ^KT-58471 Verification Pending
This commit is contained in:
committed by
Space Team
parent
731d3bf602
commit
9456872bbe
+2
-11
@@ -45,17 +45,8 @@ internal class MetadataDependencyTransformationTaskInputs(
|
||||
}
|
||||
}
|
||||
|
||||
@Transient // Only needed for configuring task inputs
|
||||
private val participatingSourceSetsLazy: Lazy<Set<KotlinSourceSet>>? = lazy {
|
||||
kotlinSourceSet.internal.withDependsOnClosure
|
||||
}
|
||||
|
||||
private val participatingSourceSets: Set<KotlinSourceSet>
|
||||
get() = participatingSourceSetsLazy?.value
|
||||
?: error(
|
||||
"`participatingSourceSets` is null. " +
|
||||
"Probably it is accessed it during Task Execution with state loaded from Configuration Cache"
|
||||
)
|
||||
@Transient // Only needed for configuring task inputs;
|
||||
private val participatingSourceSets: Set<KotlinSourceSet> = kotlinSourceSet.internal.withDependsOnClosure
|
||||
|
||||
@Suppress("unused") // Gradle input
|
||||
@get:Input
|
||||
|
||||
Reference in New Issue
Block a user