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]
Contents 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]
Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.