{"schemaVersion":"1.0","record":{"label":"Stubborn Contract","description":"Maintained Spring Cloud Contract continuation with generated verification tests and consumer stubs.","aliases":[],"kind":"software","website":"https://stubborn.sh/","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.","license":"Apache-2.0","lifecycle":"active","example":false,"features":[{"name":"Generated contracts and stubs","status":"supported","detail":"Provider verification and consumer WireMock fixtures follow the established contract model.","useCase":"Migrating JVM contract verification and stub workflows","platforms":["Java 17+","Maven","Gradle"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://docs.stubborn.sh/contract/","locator":"Verifier, generated WireMock stubs, Stub Runner and Apache-2.0","retrievedAt":"2026-10-07T11:19:07Z","kind":"vendor"}]},{"name":"Spring Cloud Contract migration","status":"limited","detail":"Documented continuation preserves assets but requires build, import and JUnit updates.","useCase":"Migrating JVM contract verification and stub workflows","platforms":["Java 17+","Maven","Gradle"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://docs.stubborn.sh/contract/migration/from-spring-cloud-contract","locator":"Coordinates, DSL imports, JUnit and legacy-property/stub compatibility","retrievedAt":"2026-10-07T11:15:17Z","kind":"vendor"},{"url":"https://stubborn.sh/transition-guide/","locator":"Apache-2.0 continuation and runtime/compatibility overview","retrievedAt":"2026-10-07T11:15:09Z","kind":"vendor"}]},{"name":"Aligned module distribution","status":"supported","detail":"BOM and libraries are published on Maven Central; standalone runner is a release asset.","useCase":"Migrating JVM contract verification and stub workflows","platforms":["Java 17+","Maven","Gradle"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/stubborn-sh/stubborn-contract/releases/tag/v0.1.2","locator":"Maven Central libraries, BOM and standalone runner","retrievedAt":"2026-10-07T11:16:07Z","kind":"vendor"}]}],"alternatives":[],"slug":"stubborn-contract","draftAlternatives":[{"targetSlug":"spring-cloud-contract","status":"limited","detail":"Official maintained continuation with a documented migration path; existing assets are supported with required build and source updates.","useCase":"Migrating JVM contract verification and stub workflows","platforms":["Java 17+","Maven","Gradle"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://spring.io/blog/2026/07/06/spring-cloud-contract-transition-to-stubbornsh/","locator":"End of Spring maintenance and release-train removal","retrievedAt":"2026-10-07T11:15:09Z","kind":"vendor"},{"url":"https://stubborn.sh/transition-guide/","locator":"Apache-2.0 continuation and runtime/compatibility overview","retrievedAt":"2026-10-07T11:15:09Z","kind":"vendor"}]}],"evidence":[{"url":"https://docs.stubborn.sh/contract/","locator":"Verifier, generated WireMock stubs, Stub Runner and Apache-2.0","retrievedAt":"2026-10-07T11:19:07Z","kind":"vendor"},{"url":"https://spring.io/blog/2026/07/06/spring-cloud-contract-transition-to-stubbornsh/","locator":"End of Spring maintenance and release-train removal","retrievedAt":"2026-10-07T11:15:09Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://docs.stubborn.sh/contract/","locator":"Verifier, generated WireMock stubs, Stub Runner and Apache-2.0","retrievedAt":"2026-10-07T11:19:07Z","id":"stubborn-overview","title":"Stubborn Contract overview","kind":"vendor"},{"url":"https://spring.io/blog/2026/07/06/spring-cloud-contract-transition-to-stubbornsh/","locator":"End of Spring maintenance and release-train removal","retrievedAt":"2026-10-07T11:15:09Z","id":"spring-contract-transition","title":"Spring announces Stubborn transition","kind":"vendor"},{"url":"https://github.com/stubborn-sh/stubborn-contract/releases/tag/v0.1.2","locator":"Maven Central libraries, BOM and standalone runner","retrievedAt":"2026-10-07T11:16:07Z","id":"stubborn-release","title":"Stubborn Contract 0.1.2 release","kind":"vendor"},{"url":"https://docs.stubborn.sh/contract/migration/from-spring-cloud-contract","locator":"Coordinates, DSL imports, JUnit and legacy-property/stub compatibility","retrievedAt":"2026-10-07T11:15:17Z","id":"stubborn-migration","title":"Migrating to Stubborn Contract","kind":"vendor"},{"url":"https://stubborn.sh/transition-guide/","locator":"Apache-2.0 continuation and runtime/compatibility overview","retrievedAt":"2026-10-07T11:15:09Z","id":"stubborn-transition","title":"Stubborn Contract transition guide","kind":"vendor"}],"overviewCitations":["stubborn-overview","spring-contract-transition"],"licenseCitations":["stubborn-overview"],"sections":[{"id":"workflow","heading":"Contracts, verification and stubs","paragraphs":[{"id":"workflow-detail","content":[{"text":"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."}],"citations":["stubborn-overview"]}]},{"id":"continuation","heading":"Maintenance and distribution","paragraphs":[{"id":"continuation-detail","content":[{"text":"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."}],"citations":["spring-contract-transition","stubborn-release"]}]},{"id":"migration","heading":"Migration work","paragraphs":[{"id":"migration-detail","content":[{"text":"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."}],"citations":["stubborn-migration"]}]},{"id":"compatibility","heading":"Compatibility is scoped","paragraphs":[{"id":"compatibility-detail","content":[{"text":"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."}],"citations":["stubborn-transition","stubborn-migration"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"Stubborn Contract is a direct continuation candidate for "},{"text":"Spring Cloud Contract","targetSlug":"spring-cloud-contract"},{"text":" 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."}],"citations":["spring-contract-transition","stubborn-transition","stubborn-overview"]}]}]},"id":"Q908","revision":956,"updatedAt":"2026-10-13T14:54:17Z","sourceUrl":"https://substitutefor.net/entities/Q908?revision=956"}}