Add Gradle property

Apache 2.0

Add a property to the gradle.properties file.

org.openrewrite.gradle.AddProperty

Required

The name of the property to add.

The value of the property to add.

If a property with the same key exists, overwrite.

Optional

A glob expression that can be used to constrain which directories or source files should be searched. When not set, all source files are searched.

mod run . --recipe=org.openrewrite.gradle.AddProperty \ -P key=org.gradle.caching \ -P value=true \ -P overwrite=true

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