Use version { } closure instead of version = { } assignment
MSALConverts version = { ... } assignment syntax to version { ... } closure call syntax in Gradle dependency declarations. The assignment form is not valid Gradle DSL; the closure form invokes the version spec method directly.
org. openrewrite. gradle. migrate. artifacts. UseVersionClosuremod run . --recipe= org. openrewrite. gradle. migrate. artifacts. UseVersionClosureInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.