Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add Hibernate Validator rule #168

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,36 @@
url: https://github.com/hibernate/hibernate-orm/blob/5.6/migration-guide.adoc
- title: 'Spring 6.0 migration guide'
url: https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.0-Release-Notes#removed-apis

- ruleID: spring-framework-5.x-to-6.0-data-access-00010
category: mandatory
effort: 3
labels:
- konveyor.io/source=spring5
- konveyor.io/target=spring6+
when:
java.dependency:
name: org.hibernate.validator.hibernate-validator
upperbound: 6.2.5.Final
description: Spring 6 must use at least Hibernate Validator 7.0.x
message: |
Spring 6 must use at least Hibernate Validator 7.0.x. Consider, though, migrating directly to Hibernate Validator 8.0
jmle marked this conversation as resolved.
Show resolved Hide resolved
directly, as it is aligned with Jakarta EE 10.

Switch the hibernate validator dependency to
```
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>7.0.5.Final</version>
</dependency>
```

Please check the Hibernate Validator migration guidelines in the links for more information.
links:
- title: 'Hibernate Validator migration guide'
url: https://hibernate.org/validator/documentation/migration-guide/
- title: 'Hibernate Validator 7.0 release and changelog details'
url: https://in.relation.to/2020/12/08/hibernate-validator-700-62-cr1-released/
- title: 'Spring 6.0 migration guide'
url: https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-6.0-Release-Notes#removed-apis
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
<version>${hibernate.version}</version>
</dependency>

<!-- Hibernate Validator -->
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.2.5.Final</version>
</dependency>

<!-- Hibernate JPA API -->
<dependency>
<groupId>org.hibernate</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ tests:
mode: "source-only"
hasIncidents:
exactly: 1
- ruleID: spring-framework-5.x-to-6.0-data-access-00010
testCases:
- name: tc-1
analysisParams:
mode: "source-only"
hasIncidents:
exactly: 1
Loading