Change property key
Apache 2.0Change a property key leaving the value intact.
org. openrewrite. properties. ChangePropertyKeyRequired
The property key to rename.
The new name for the key identified by oldPropertyKey.
Optional
relaxedBindingBoolean
Whether to match the oldPropertyKey using relaxed binding rules. Default is true. Set to false to use exact matching.
regexBoolean
Default false. If enabled, oldPropertyKey will be interpreted as a Regular Expression, and capture group contents will be available in newPropertyKey
mod run . --recipe= org. openrewrite. properties. ChangePropertyKey \
-P oldPropertyKey= management. metrics. binders. files. enabled \
-P newPropertyKey= management. metrics. enable. process. filesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.