Change property value
Apache 2.0Change a property value leaving the key intact.
org. openrewrite. properties. ChangePropertyValueRequired
The name of the property key whose value is to be changed. Supports glob patterns.
The new value to be used for key specified by propertyKey.
Optional
Only change the property value if it matches the configured oldValue.
regexBoolean
Default false. If enabled, oldValue will be interpreted as a Regular Expression, to replace only all parts that match the regex. Capturing group can be used in newValue.
relaxedBindingBoolean
Whether to match the propertyKey using relaxed binding rules. Default is true. Set to false to use exact matching.
mod run . --recipe= org. openrewrite. properties. ChangePropertyValue \
-P propertyKey= 'management. metrics. binders. *. enabled' \
-P newValue= newValueInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.