software · Q908
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]
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]
Capabilities & limitations
Generated contracts and stubs
supportedProvider verification and consumer WireMock fixtures follow the established contract model.[1]
Migrating JVM contract verification and stub workflows · Java 17+, Maven, Gradle · Version, plan and platform requirements apply
1 source · check evidence
Verifier, generated WireMock stubs, Stub Runner and Apache-2.0
vendor · checked 2026-10-07Spring Cloud Contract migration
limitedDocumented continuation preserves assets but requires build, import and JUnit updates.[4][5]
Migrating JVM contract verification and stub workflows · Java 17+, Maven, Gradle · Version, plan and platform requirements apply
2 sources · check evidence
Coordinates, DSL imports, JUnit and legacy-property/stub compatibility
vendor · checked 2026-10-07Apache-2.0 continuation and runtime/compatibility overview
vendor · checked 2026-10-07Aligned module distribution
supportedBOM and libraries are published on Maven Central; standalone runner is a release asset.[3]
Migrating JVM contract verification and stub workflows · Java 17+, Maven, Gradle · Version, plan and platform requirements apply
1 source · check evidence
Maven Central libraries, BOM and standalone runner
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Spring Cloud Contract for Migrating JVM contract verification and stub workflows
limitedOfficial maintained continuation with a documented migration path; existing assets are supported with required build and source updates.[2][5]
Java 17+, Maven, Gradle · Version, plan and platform requirements apply
References
- Stubborn Contract overview
Verifier, generated WireMock stubs, Stub Runner and Apache-2.0
vendor · retrieved 2026-10-07 - Spring announces Stubborn transition
End of Spring maintenance and release-train removal
vendor · retrieved 2026-10-07 - Stubborn Contract 0.1.2 release
Maven Central libraries, BOM and standalone runner
vendor · retrieved 2026-10-07 - Migrating to Stubborn Contract
Coordinates, DSL imports, JUnit and legacy-property/stub compatibility
vendor · retrieved 2026-10-07 - Stubborn Contract transition guide
Apache-2.0 continuation and runtime/compatibility overview
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 956 | 2026-10-13 14:54:17 | /* wbeditentity-create-item:0| */ sf:acbb230b-1295-4fb4-b420-9c3a858d743d:v1 | Add Stubborn Contract with cited product identity, workflow and portability boundaries; documentation research only. | attribution: /proposals/acbb230b-1295-4fb4-b420-9c3a858d743d |