testcontainers-spring-boot icon indicating copy to clipboard operation
testcontainers-spring-boot copied to clipboard

#903 import jakarta.validation instead of javax.validation

Open klu2 opened this issue 2 years ago • 2 comments

in order to avoid duplicate classpath entries (jakarta.validation is already pulled transitively)

klu2 avatar May 26 '22 18:05 klu2

jakarta validation is not supported by current spring boot, it requires spring boot 3.x. https://github.com/spring-projects/spring-framework/issues/25354

Aloren avatar May 27 '22 19:05 Aloren

the ticket you are refering to is talking about Jakarta EE 9, therefore about package changes. This is not the case here, The included JAR has the groupId jakarta.* and still package javax.*, so that's fine for Spring Boot 2.7. Still, as soon as Spring Boot goes to Jakarta EE 9, you will automatically get the new versions there with the jakarta.* packages, so that is future-proof, see https://spring.io/blog/2022/05/24/preparing-for-spring-boot-3-0

klu2 avatar May 29 '22 11:05 klu2