-
fix(gradle): resolve dependencies after capturing project tasks (#34045)
发布于
2026-01-08 16:32:27 +00:00 Current Behavior
When processing Kotlin Multiplatform (KMP) projects, the Nx Gradle
plugin encounters ConcurrentModificationException errors because KMP
dynamically modifies the Gradle project's task and configuration
containers during dependency resolution. The plugin was resolving
configuration dependencies before processing tasks, which triggered
KMP's hierarchy finalization and dynamic task creation while the plugin
was still iterating over these collections.Expected Behavior
The Gradle plugin should handle Kotlin Multiplatform projects without
errors by:- Processing tasks before resolving configuration dependencies,
preventing KMP from modifying task containers during iteration - Creating immutable snapshots of task and configuration collections
before iteration to avoid concurrent modification issues
Related Issue(s)
Fixes NXC-3633
下载附件
- Processing tasks before resolving configuration dependencies,