Skip to content

Assert the resolved Stubborn Contract Maven plugin version - #101

Merged
timtebeek merged 1 commit into
mainfrom
tim/fix-stubborn-plugin-version-assertion
Aug 23, 2026
Merged

Assert the resolved Stubborn Contract Maven plugin version#101
timtebeek merged 1 commit into
mainfrom
tim/fix-stubborn-plugin-version-assertion

Conversation

@timtebeek

Copy link
Copy Markdown
Member

The nightly build broke on MigrateFromSpringCloudContractTest.migrateMavenPlugin: the test expected the migrated sh.stubborn:stubborn-contract-maven-plugin to keep the 4.1.4 version the Spring Cloud Contract plugin had, but got 0.1.2.

Upstream sh.stubborn:stubborn-contract-migration 0.1.2 (published today, and picked up here via latest.release) merged UpdateMavenDependencies/UpdateGradleDependencies into a single UpdateDependencies recipe and added newVersion: latest.release to every coordinate change, including the Maven plugin.

Rather than pin the expectation to whatever the current Stubborn Contract release is, assert the plugin coordinates were swapped and a version was resolved, and hand the actual back as the expected output.

Verified locally: with Maven Central reachable the assertion passes; the only local failure left is a HTTP 429 from Central against my IP, which also blocked resolution in the test JVM.

`stubborn-contract-migration` 0.1.2 repins every migrated coordinate to
`latest.release`, so the plugin version no longer stays at the Spring Cloud
Contract version the pom started with. Assert on the shape of the resolved
version instead of pinning it, so releases of the plugin don't break the build.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Aug 23, 2026
@timtebeek
timtebeek merged commit 9193e9f into main Aug 23, 2026
1 check passed
@timtebeek
timtebeek deleted the tim/fix-stubborn-plugin-version-assertion branch August 23, 2026 18:45
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant