Migrate from Spring Cloud Contract to Stubborn Contract

Apache 2.0

Composite 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.MigrateFromSpringCloudContract
mod run . --recipe=sh.stubborn.contract.migration.MigrateFromSpringCloudContract

Install 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.

  1. Update Spring Cloud Contract coordinates to Stubborn Contract
  2. Rename org.springframework.cloud.contract packages to sh.stubborn.contract
  3. Migrate deprecated Stub Runner property prefix to the canonical one
  4. Migrate deprecated Verifier property prefix to the canonical one
  5. Migrate StubRunner JUnit 4 Rule to JUnit 5 Extension