<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od" -->

---
title: From Contracts to Confidence: Spring Cloud Contract 5 in...
description: A conference talk from the creator of Spring Cloud Contract covers the version 5 release (a housekeeping/maintenance release with breaking changes: WireMock 3...
canonical: https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI by Marcin Grzejszczak | daily.dev
og:description: A conference talk from the creator of Spring Cloud Contract covers the version 5 release (a housekeeping/maintenance release with breaking changes: WireMock 3...
og:url: https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od
og:image: https://api.daily.dev/og/posts/rw48UU9OD.png
og:image:alt: From Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI by Marcin Grzejszczak
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI by Marcin Grzejszczak

**[Spring I/O](https://daily.dev/sources/springio)** · 49 min read · 0 upvotes · 0 comments

## Summary

A conference talk from the creator of Spring Cloud Contract covers the version 5 release (a housekeeping/maintenance release with breaking changes: WireMock 3 migration, removal of the shade plugin, Gradle source-set restructuring, stub-runner property renames, removal of javax inject/named support, and REST Assured 5.x support via reflection). It then previews 5.1 plans (cleaner JSON-to-JSON-Path conversion, optional strict assertion matching) and roadmap ideas (central dashboard, can-I-deploy checks, branch awareness, dependency visibility, polyglot support). The bulk of the talk pitches how AI agents can use contracts as verifiable context - reading, writing, validating, and monitoring contracts - and introduces Stubborn, the speaker's new open-source/commercial platform implementing these ideas ahead of official Spring Cloud Contract support, including an MCP server, AI proxy for capturing production traffic into contracts, Kafka message contract generation, OpenAPI validation, and polyglot (Node.js) publishing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=WxyUF4iISDI>

## Questions this post answers

### What breaking changes should I expect when upgrading to Spring Cloud Contract 5?

Spring Cloud Contract 5 is a maintenance release with several breaking changes: it drops the built-in WireMock integration in favor of WireMock's official Spring Boot integration (requiring a changed group ID for WireMock 3), removes the Spring Cloud Contract Shade module entirely, moves Gradle contracts from src/test/resources/contracts to a dedicated contractTest source set, renames the 'stub runner' properties to 'spring cloud contract stub runner', and removes javax inject/named support in favor of Jakarta EE.

_Developers planning a Spring Cloud Contract upgrade can track breaking-change writeups like this on daily.dev._

### How does Spring Cloud Contract support REST Assured 7 without a major version bump?

Spring Cloud Contract 5 supports REST Assured through Spring 7 purely via reflection, changing certain method return types to Object to work around incorrect return types for that Spring version. This let REST Assured ship a minor 5.x release instead of a breaking major version, so Spring Cloud Contract 5 could stay on its existing baseline without requiring a Spring Cloud Contract 6 release.

_Teams juggling REST Assured and Spring version compatibility can follow dependency workaround details like this on daily.dev._

### How can AI agents use contract testing tools like Spring Cloud Contract to avoid breaking API consumers?

An AI agent can query contracts through an MCP server before generating client code, so it never has to guess API shapes, and can validate AI-generated contracts against an OpenAPI schema in a loop until they match. Contracts also act as a guardrail against unsafe changes: if a field used by known consumers is deleted, contract tests fail immediately, which an agent can flag before deployment.

_Developers pairing AI coding agents with API contracts can follow guardrail patterns like this on daily.dev._

## Similar posts on daily.dev

- [Cloud Bits: Bounded by contract – Distributed Computing Musings](https://daily.dev/posts/cloud-bits-bounded-by-contract-distributed-computing-musings-kqbxt3nnp) · Distributed Computing Musings · 0 upvotes · 0 comments
- [Java Weekly, Issue 654](https://daily.dev/posts/java-weekly-issue-654-255h2ksu8) · Baeldung · 3 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI by Marcin Grzejszczak","url":"https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od"},"datePublished":"2026-09-27T07:26:32.660Z","dateModified":"2026-09-27T07:32:14.330Z","description":"A conference talk from the creator of Spring Cloud Contract covers the version 5 release (a housekeeping/maintenance release with breaking changes: WireMock 3...","image":"https://i.ytimg.com/vi/WxyUF4iISDI/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/WxyUF4iISDI/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,java","timeRequired":"PT49M","video":{"@type":"VideoObject","name":"From Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI by Marcin Grzejszczak","description":"A conference talk from the creator of Spring Cloud Contract covers the version 5 release (a housekeeping/maintenance release with breaking changes: WireMock 3...","thumbnailUrl":"https://i.ytimg.com/vi/WxyUF4iISDI/sddefault.jpg","uploadDate":"2026-09-27T07:26:32.660Z","duration":"PT49M","url":"https://api.daily.dev/r/rw48UU9OD","embedUrl":"https://www.youtube.com/embed/WxyUF4iISDI"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"From Contracts to Confidence: Spring Cloud Contract 5 in the Age of AI by Marcin Grzejszczak"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/from-contracts-to-confidence-spring-cloud-contract-5-in-the-age-of-ai-by-marcin-grzejszczak-rw48uu9od#faq","mainEntity":[{"@type":"Question","name":"What breaking changes should I expect when upgrading to Spring Cloud Contract 5?","acceptedAnswer":{"@type":"Answer","text":"Spring Cloud Contract 5 is a maintenance release with several breaking changes: it drops the built-in WireMock integration in favor of WireMock's official Spring Boot integration (requiring a changed group ID for WireMock 3), removes the Spring Cloud Contract Shade module entirely, moves Gradle contracts from src/test/resources/contracts to a dedicated contractTest source set, renames the 'stub runner' properties to 'spring cloud contract stub runner', and removes javax inject/named support in favor of Jakarta EE. Developers planning a Spring Cloud Contract upgrade can track breaking-change writeups like this on daily.dev."}},{"@type":"Question","name":"How does Spring Cloud Contract support REST Assured 7 without a major version bump?","acceptedAnswer":{"@type":"Answer","text":"Spring Cloud Contract 5 supports REST Assured through Spring 7 purely via reflection, changing certain method return types to Object to work around incorrect return types for that Spring version. This let REST Assured ship a minor 5.x release instead of a breaking major version, so Spring Cloud Contract 5 could stay on its existing baseline without requiring a Spring Cloud Contract 6 release. Teams juggling REST Assured and Spring version compatibility can follow dependency workaround details like this on daily.dev."}},{"@type":"Question","name":"How can AI agents use contract testing tools like Spring Cloud Contract to avoid breaking API consumers?","acceptedAnswer":{"@type":"Answer","text":"An AI agent can query contracts through an MCP server before generating client code, so it never has to guess API shapes, and can validate AI-generated contracts against an OpenAPI schema in a loop until they match. Contracts also act as a guardrail against unsafe changes: if a field used by known consumers is deleted, contract tests fail immediately, which an agent can flag before deployment. Developers pairing AI coding agents with API contracts can follow guardrail patterns like this on daily.dev."}}]}
```

