Migrate deprecated Verifier property prefix to the canonical one
Recipe ID
sh.stubborn.contract.migration.MigrateVerifierPropertiesArtifactorg.openrewrite.recipe:rewrite-third-partyRenames the deprecated Verifier property prefix spring.cloud.contract.verifier.* to its canonical stubborn.contract.verifier.* equivalent in Spring Boot application.properties and application.yml/yaml files. The Stubborn Contract Maven plugin exposes these as -Dstubborn.contract.verifier.* system properties; the legacy names are still accepted for the string parameters and via this recipe for configuration files, and are slated for removal in the next major release.
Composite recipepropertiesspring-cloud-contractstubborn-contractApache 2.0
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe sh.stubborn.contract.migration.MigrateVerifierPropertiesIf the recipe isn’t available locally, install it with:
mod config recipes jar install org.openrewrite.recipe:rewrite-third-party:RELEASEDefinition
This recipe runs the following recipes in order.
- Change property key
org.openrewrite.properties.ChangePropertyKey - Change property key
spring.cloud.contract.verifiertostubborn.contract.verifierorg.openrewrite.yaml.ChangePropertyKey
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats