Stubborn Contract Maintained Spring Cloud Contract continuation with generated verification tests and consumer stubs.
Overview Stubborn Contract is the Apache-2.0 continuation of Spring Cloud Contract for testing service interfaces. It generates provider-verification tests and consumer stubs from contract definitions, preserving the earlier project's central workflow under independent maintenance.[1] [2]
Contents Contracts, verification and stubs A contract describes the request and response expected between services. Maven or Gradle tooling generates verification tests for the producer, and consumers can use generated WireMock-based stubs without starting the real service. Stub Runner retrieves fixtures from Maven repositories or Git. This connects a shared interface definition to both sides of an integration rather than treating a manually authored mock as sufficient evidence of compatibility.[1]
Maintenance and distribution Spring's July 2026 announcement transferred project ownership and support to Stubborn and ended Spring maintenance of the older project. Stubborn Contract 0.1.2 was released in August with libraries on Maven Central, a BOM for aligned module versions and a separate executable stub-runner JAR in the release assets. The continuation should therefore be evaluated using its own release and dependency information rather than the former Spring Cloud release train.[2] [3]
Migration work The migration guide changes dependency and plugin coordinates, Java packages and configuration prefixes. It also replaces JUnit 4 rules with JUnit 5 extensions and requires import updates in Groovy and Kotlin DSL files; YAML contracts retain their format. An OpenRewrite recipe automates mechanical changes, but the documentation still calls for reviewing the result.[4]
Compatibility is scoped The transition guide describes compatibility with existing contracts, generated stubs and legacy stub-runner properties, with the old property prefix retained through a deprecation bridge. That promise concerns continued use of test assets, not permanent support for unchanged application imports or build configuration. The documented runtime is Java 17 or newer with a current Spring Boot generation, so an older stack still needs a dependency review.[4] [5]
Substitution scope Stubborn Contract is a direct continuation candidate for Spring Cloud Contract where the goal is to retain contract definitions and stub-based consumer tests while regaining an actively maintained project. The relationship is stronger than a shared category because both projects document the handover and a migration path. Compatibility remains vendor-documented rather than independently tested here; verify a representative producer build and consumer fixture before treating a migration as complete.[1] [2] [5]
Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.