Enable the Gradle configuration cache

MSAL

Set org.gradle.configuration-cache=true so Gradle can skip the configuration phase when nothing it depends on has changed. Deliberately not part of org.openrewrite.gradle.GradleBestPractices: enabling it surfaces configuration cache violations in build logic that have to be fixed by hand before the build will run, so this is the first half of a change whose second half a recipe cannot make. See the Gradle best practice.

org.openrewrite.gradle.migrate.properties.EnableGradleConfigurationCache
mod run . --recipe=org.openrewrite.gradle.migrate.properties.EnableGradleConfigurationCache

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