Add spring-boot-starter-validation dependency

Proprietary

In Spring Boot 4, validation is no longer auto-included from the web starter. This recipe adds the spring-boot-starter-validation dependency when Jakarta Validation annotations are used in the project.

io.moderne.java.spring.boot4.AddValidationStarterDependency
mod run . --recipe=io.moderne.java.spring.boot4.AddValidationStarterDependency

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add Gradle or Maven dependency org.springframework.boot:spring-boot-starter-validation:4.x
  2. Add Gradle or Maven dependency org.springframework.boot:spring-boot-starter-validation:4.x