Use version { } closure instead of version = { } assignment

MSAL

Converts 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.UseVersionClosure
mod run . --recipe=org.openrewrite.gradle.migrate.artifacts.UseVersionClosure

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.