# Stubborn Contract

Maintained Spring Cloud Contract continuation with generated verification tests and consumer stubs\.

ID: Q908 · Revision: 956

Type: software · License: Apache\-2\.0[^stubborn-overview] · Status: active

Website: https://stubborn.sh/



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\.[^stubborn-overview][^spring-contract-transition]

## 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\.[^stubborn-overview]

## 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\.[^spring-contract-transition][^stubborn-release]

## 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\.[^stubborn-migration]

## 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\.[^stubborn-transition][^stubborn-migration]

## Substitution scope

Stubborn Contract is a direct continuation candidate for [Spring Cloud Contract](/springcloudcontract) 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\.[^spring-contract-transition][^stubborn-transition][^stubborn-overview]

## Capabilities and substitutions

### Generated contracts and stubs — supported

Provider verification and consumer WireMock fixtures follow the established contract model\.[^stubborn-overview]

Use case: Migrating JVM contract verification and stub workflows · Platforms: Java 17\+, Maven, Gradle · Region: Version, plan and platform requirements apply

### Spring Cloud Contract migration — limited

Documented continuation preserves assets but requires build, import and JUnit updates\.[^stubborn-migration][^stubborn-transition]

Use case: Migrating JVM contract verification and stub workflows · Platforms: Java 17\+, Maven, Gradle · Region: Version, plan and platform requirements apply

### Aligned module distribution — supported

BOM and libraries are published on Maven Central; standalone runner is a release asset\.[^stubborn-release]

Use case: Migrating JVM contract verification and stub workflows · Platforms: Java 17\+, Maven, Gradle · Region: Version, plan and platform requirements apply

### [Substitute for Spring Cloud Contract](/springcloudcontract) — limited

Official maintained continuation with a documented migration path; existing assets are supported with required build and source updates\.[^spring-contract-transition][^stubborn-transition]

Use case: Migrating JVM contract verification and stub workflows · Platforms: Java 17\+, Maven, Gradle · Region: Version, plan and platform requirements apply

## References

[^stubborn-overview]: [Stubborn Contract overview](<https://docs.stubborn.sh/contract/>) — Verifier, generated WireMock stubs, Stub Runner and Apache\-2\.0 (vendor; retrieved 2026-10-07T11:19:07Z)

[^spring-contract-transition]: [Spring announces Stubborn transition](<https://spring.io/blog/2026/07/06/spring-cloud-contract-transition-to-stubbornsh/>) — End of Spring maintenance and release\-train removal (vendor; retrieved 2026-10-07T11:15:09Z)

[^stubborn-release]: [Stubborn Contract 0\.1\.2 release](<https://github.com/stubborn-sh/stubborn-contract/releases/tag/v0.1.2>) — Maven Central libraries, BOM and standalone runner (vendor; retrieved 2026-10-07T11:16:07Z)

[^stubborn-migration]: [Migrating to Stubborn Contract](<https://docs.stubborn.sh/contract/migration/from-spring-cloud-contract>) — Coordinates, DSL imports, JUnit and legacy\-property/stub compatibility (vendor; retrieved 2026-10-07T11:15:17Z)

[^stubborn-transition]: [Stubborn Contract transition guide](<https://stubborn.sh/transition-guide/>) — Apache\-2\.0 continuation and runtime/compatibility overview (vendor; retrieved 2026-10-07T11:15:09Z)

Source revision: https://substitutefor.net/entities/Q908?revision=956
