Skip to content

Avoid hardcoded patch version in JavaxValidationMigrationToJakartaValidationTest - #1362

Merged
jkschneider merged 1 commit into
mainfrom
jkschneider/hibernate-validator-patch-version
Oct 25, 2026
Merged

jkschneider merged 1 commit into
mainfrom
jkschneider/hibernate-validator-patch-version

Conversation

@jkschneider

Copy link
Copy Markdown
Member

hibernate-validator 7.0.7.Final reached Maven Central today (2026-10-25, 15:07 UTC), so migrateLegacyHibernateValidatorProvider fails on main: the recipe upgrades to the newest 7.0.x (newVersion: 7.0.x), and the test expected exactly 7.0.6.Final. #1321 bumped the same line from 7.0.5.Final five days ago.

The test now asserts the moved dependency with a pattern, as UpdateSdkManTest (#1183) and the other jakarta tests do: groupId org.hibernate.validator, any 7.0.x.Final, test scope kept, and no org.hibernate groupId left behind.

./gradlew test --tests 'org.openrewrite.java.migrate.jakarta.JavaxValidationMigrationToJakartaValidationTest':

  • on main: 5 tests, 1 failed (expected: <version>7.0.6.Final</version> but was: <version>7.0.7.Final</version>)
  • on this branch: 5 tests, 0 failed
  • with the new pattern pinned back to 7\.0\.6: fails against 7.0.7.Final, so the assertion still checks the version

…idationTest

hibernate-validator 7.0.7.Final reached Maven Central on 2026-10-25, breaking the
hardcoded 7.0.6.Final expectation, as 7.0.6.Final broke the 7.0.5.Final one in #1321.
The recipe upgrades to the newest 7.0.x, so assert on any 7.0.x.Final under the new
groupId with the test scope kept, matching the surrounding tests.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Oct 25, 2026
@jkschneider
jkschneider merged commit fce4480 into main Oct 25, 2026
3 checks passed
@jkschneider
jkschneider deleted the jkschneider/hibernate-validator-patch-version branch October 25, 2026 18:13
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Oct 25, 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