Change Quarkus configuration property value

Apache 2.0

Change the value of a property in Quarkus configuration files.

org.openrewrite.quarkus.ChangeQuarkusPropertyValue

Required

The name of the property key whose value is to be changed. Supports regex.

The new value to be used for key specified by propertyKey.

Optional

Only change the property value if it matches the configured oldValue.

The profile where the property is defined. If not specified, the property will be changed on all profiles by default.

changeAllProfilesBoolean

If set to true, the property value will be changed on all available profiles. Defaults to true if a profile is not defined.

Each value in this list represents a glob expression that is used to match which files will be modified. If this value is not present, this recipe will query the execution context for reasonable defaults. ("**/application.yml", "**/application.yaml", "**/application.properties" and "**/META-INF/microprofile-config.properties". Separate values with commas.

mod run . --recipe=org.openrewrite.quarkus.ChangeQuarkusPropertyValue \ -P propertyKey=quarkus.hibernate-search-orm.indexing.plan.synchronization.strategy \ -P newValue=read-sync

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