Replace spread-all* calls in configurations blocks with configurations.all { }
MSALGradle 9 throws Cannot mutate the dependencies of configuration ':all' after the configuration was resolved. when a configurations { } closure uses Groovy's spread-dot form all*.<method>(args). Rewrite each such call to the closure form configurations.all { <method>(args) }, which preserves eager-all semantics but is accepted by Gradle 9. Only applied when every statement in the configurations { } block uses the spread form; mixed blocks are left untouched for manual review.
org. openrewrite. gradle. migrate. artifacts. RewriteSpreadAllInConfigurationsBlockmod run . --recipe= org. openrewrite. gradle. migrate. artifacts. RewriteSpreadAllInConfigurationsBlockInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.