testcontainers-spring-boot
testcontainers-spring-boot copied to clipboard
#903 import jakarta.validation instead of javax.validation
in order to avoid duplicate classpath entries (jakarta.validation is already pulled transitively)
jakarta validation is not supported by current spring boot, it requires spring boot 3.x. https://github.com/spring-projects/spring-framework/issues/25354
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