Rename property references

Proprietary

Renames ${...} placeholders of a property in every annotation and string literal, in property values and YAML scalars, and property names passed to Environment, System, DynamicPropertyRegistry and TestPropertyValues or written as key=value in annotations. Matching follows Spring's relaxed binding.

io.moderne.java.spring.cloud.aws.RenamePropertyPlaceholders

Required

The property key to rename.

Optional

The new property key. When omitted, key=value entries naming the old key are removed from annotation arrays such as @SpringBootTest(properties).

mod run . --recipe=io.moderne.java.spring.cloud.aws.RenamePropertyPlaceholders \ -P oldPropertyKey=cloud.aws.region.static

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