software · Q878
Spring Cloud Contract
Archived Spring contract-testing project with generated provider tests and consumer stubs.
Overview
Spring Cloud Contract is the archived Spring project for consumer- and producer-driven contract testing of HTTP and message interactions. Its definitions generate verification tests and reusable stubs; Spring transferred maintenance and ownership to the Stubborn project in July 2026.[1][2][3]
Contracts and generated verification
The documented workflow adds Contract Verifier and its build plugin, then defines expected HTTP or messaging interactions in contract files such as Groovy DSL or YAML. The build generates tests that check whether the application satisfies those definitions. Generated tests need a suitable base class to configure controllers, messaging infrastructure or other test context; writing the contract does not by itself supply a working application implementation.[4]
Consumer fixtures and incomplete contracts
Generated stubs allow consumers to work against defined behavior. The runtime-stub documentation distinguishes normal producer verification from contracts marked in progress: those can produce stubs without generating the corresponding producer tests. Consumers can also request fresh stub generation from contract definitions. Such a fixture can unblock development, but its availability should not be treated as evidence that the producer has already passed verification.[5]
End of Spring maintenance
Spring announced the ownership and support transfer on July 6, 2026, stating that the project would leave future Spring Cloud release trains and stop receiving Spring maintenance in existing active trains. The repository was subsequently archived. Its Apache-2.0 code and documentation remain available, but the Spring-branded project is a legacy dependency rather than an actively maintained new adoption target.[1][3]
Moving to the continuation
The official continuation is Stubborn Contract. Its migration documentation preserves YAML contract structure and supports existing generated WireMock stubs, while changing build coordinates, Java package names and configuration prefixes. Groovy and Kotlin contracts need import updates, and JUnit 4 rule usage must move to JUnit 5 extensions. This is a documented migration path, not a claim that every build works unchanged merely by replacing a version number.[6]
Substitution scope
For an existing JVM test suite, Spring Cloud Contract can fulfill some of the interface-verification tasks addressed by Pact JS, using defined contracts and generated tests instead of JavaScript consumer tests. The overlap does not imply interchangeable artifacts or equal test coverage. Given the maintenance transfer, continued use should be assessed as legacy retention; the successor is the more direct migration route for established Spring Cloud Contract assets.[3][4][7][8]
Capabilities & limitations
Generated provider tests
supportedContract definitions produce verification tests requiring application-specific base setup.[4]
Legacy JVM contract verification · JVM, Maven, Gradle · Version, plan and platform requirements apply
1 source · check evidence
DSL definitions, generated tests and required base class
vendor · checked 2026-10-07In-progress contract stubs
limitedStubs can exist before corresponding producer tests are generated or passing.[5]
Legacy JVM contract verification · JVM, Maven, Gradle · Version, plan and platform requirements apply
1 source · check evidence
In-progress contracts and unverified generated stubs
vendor · checked 2026-10-07Spring-maintained updates
unsupportedSpring ended maintenance and transferred the project to Stubborn.[3]
Legacy JVM contract verification · JVM, Maven, Gradle · Version, plan and platform requirements apply
1 source · check evidence
End of Spring maintenance and release-train removal
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Pact JS for Legacy JVM contract verification
limitedLimited legacy JVM alternative for interface verification through defined contracts and generated tests; not interchangeable JavaScript contracts and no ongoing Spring maintenance.[3][4][8]
JVM, Maven, Gradle · Version, plan and platform requirements apply
References
- Spring Cloud Contract archived repository
Archive notice, maintenance transfer and Apache-2.0
vendor · retrieved 2026-10-07 - Spring Cloud Contract reference
Consumer/provider contract scope
vendor · retrieved 2026-10-07 - Spring announces Stubborn transition
End of Spring maintenance and release-train removal
vendor · retrieved 2026-10-07 - First Spring Cloud Contract application
DSL definitions, generated tests and required base class
vendor · retrieved 2026-10-07 - Generating stubs at runtime
In-progress contracts and unverified generated stubs
vendor · retrieved 2026-10-07 - Migrating to Stubborn Contract
Coordinates, DSL imports, JUnit and legacy-property/stub compatibility
vendor · retrieved 2026-10-07 - Pact introduction
Consumer-driven contracts by example
vendor · retrieved 2026-10-07 - Pact JS repository
JavaScript contract testing and framework integration
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 |
|---|---|---|
| 926 | 2026-10-13 13:31:24 | /* wbeditentity-create-item:0| */ sf:0b65239a-f45b-462b-9dc3-772cd61ee33c:v1 | Add archived Spring Cloud Contract with the verified July 2026 maintenance transfer and Stubborn migration limits. | attribution: /proposals/0b65239a-f45b-462b-9dc3-772cd61ee33c |