Spring Cloud Contract 5.0.1 released - upgrade!

Dec 9, 2025·
Marcin Grzejszczak
Marcin Grzejszczak
· 1 min read
I’m very grateful to my employer HeroDevs that I’m allowed to work on OSS in any spare time that I have. At HeroDevs we ♥ Open Source!

TLDR; Spring Cloud Contract 5.0.1 is released with some critical bug fixes. Please upgrade!

The Problem

With the release of Spring Cloud Contract 5.0.0 we’ve bumped the prerequiste of Maven version to be 3.9. Two big problems appeared after the release

The first one was an easy fix and IMO not great coding assumption by Maven (why assume null lists instead of an empty one).

The second one was super tricky. I honestly didn’t understand why the classes are not on the classpath. They had to be there!!11!!!

Well… not really because of this Maven issue. It turns out that Maven is filtering out the classes from the ClassLoader unless you have the components injected by Maven.

The Solution

The first issue got fixed here.

The second one is more interested in got fixed here.

The release of Spring Cloud Contract 5.0.1 is in Maven Central already so if you’re using Maven Plugin please be sure that you upgrade to the latest version.