Enable Gradle build cache

Apache 2.0

Enable the Gradle build cache. By enabling build cache the build outputs are stored externally and fetched from the cache when it is determined that those inputs have no changed, avoiding the expensive work of regenerating them. See the Gradle Build Cache for more information.

org.openrewrite.gradle.EnableGradleBuildCache
mod run . --recipe=org.openrewrite.gradle.EnableGradleBuildCache

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

Recipe list

It runs these recipes, in this order.

  1. Add Gradle property org.gradle.caching=true