Skip to content

Match any commons-collections 4.x in migrateDependencies test - #142

Merged
timtebeek merged 1 commit into
mainfrom
tim/fix-ci
Aug 10, 2026
Merged

Match any commons-collections 4.x in migrateDependencies test#142
timtebeek merged 1 commit into
mainfrom
tim/fix-ci

Conversation

@timtebeek

@timtebeek timtebeek commented Aug 10, 2026

Copy link
Copy Markdown
Member

CI on main failed on version drift, not on the Gradle wrapper bump it landed with.

UpgradeApacheCommonsCollections_3_4Test.migrateDependencies pinned the expected upgrade to 4.5.x, but commons-collections4 released 4.6.0. The recipe targets 4.x, so the assertion now matches any 4.x release. The regex is anchored on the <commons-collections.version> property, otherwise a bare 4\.\d+\.\d+ matches <modelVersion>4.0.0</modelVersion> first.

4.6.0 broke the pinned 4.5.x assertion; the recipe targets 4.x. Anchor
the regex on the property to avoid matching <modelVersion>4.0.0</modelVersion>.
@timtebeek timtebeek changed the title Fix tests failing on newer dependency versions Match any commons-collections 4.x in migrateDependencies test Aug 10, 2026
@timtebeek
timtebeek merged commit 71f3400 into main Aug 10, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Aug 10, 2026
@timtebeek
timtebeek deleted the tim/fix-ci branch August 10, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant