File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
packages/gradle/project-graph/src/main/kotlin/dev/nx/gradle/utils Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -476,9 +476,6 @@ fun isCacheable(task: Task): Boolean {
476476 * Finds provider-based task dependencies by inspecting lifecycle dependencies without triggering
477477 * resolution. Uses Gradle internal APIs to access raw dependency values and check for providers
478478 * with known producer tasks.
479- *
480- * These are the dependencies that will cause "Querying the mapped value of flatmap(...) before task
481- * has completed" errors when the provider value is queried before the producing task completes.
482479 */
483480fun findProviderBasedDependencies (task : Task ): Set <String > {
484481 val logger = task.logger
@@ -489,7 +486,6 @@ fun findProviderBasedDependencies(task: Task): Set<String> {
489486 val lifecycleDeps = taskInternal.lifecycleDependencies
490487
491488 if (lifecycleDeps is DefaultTaskDependency ) {
492- // Access raw unresolved values without triggering resolution
493489 val rawDeps: Set <Any > = lifecycleDeps.mutableValues
494490
495491 rawDeps.forEach { dep ->
@@ -506,10 +502,7 @@ fun findProviderBasedDependencies(task: Task): Set<String> {
506502 }
507503 }
508504 is TaskProvider <* > -> {
509- // TaskProvider itself indicates a lazy task dependency
510505 try {
511- // Don't resolve the provider, just note that there's a provider-based dependency
512- // We can get the name without fully resolving
513506 producerTasks.add(dep.name)
514507 } catch (e: Exception ) {
515508 logger.debug(" Could not get name from TaskProvider: ${e.message} " )
You can’t perform that action at this time.
0 commit comments