Migrate from Spring Cloud Contract to Stubborn Contract
Apache 2.0Composite recipe that updates Maven/Gradle coordinates, Java package names, and drops JUnit 4 StubRunner / Verifier usage. Run this after adding stubborn-contract-migration to your build's rewrite plugin configuration.
sh. stubborn. contract. migration. MigrateFromSpringCloudContractmod run . --recipe= sh. stubborn. contract. migration. MigrateFromSpringCloudContractInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Update Spring Cloud Contract coordinates to Stubborn Contract
- Rename org.springframework.cloud.contract packages to sh.stubborn.contract
- Migrate deprecated Stub Runner property prefix to the canonical one
- Migrate deprecated Verifier property prefix to the canonical one
- Migrate StubRunner JUnit 4 Rule to JUnit 5 Extension