Add spring-boot-starter-validation if needed

MSAL

Add spring-boot-starter-validation when validation constraints are used, unless the project already declares jakarta.validation-api or hibernate-validator directly.

org.openrewrite.java.spring.boot2.AddSpringBootStarterValidation
mod run . --recipe=org.openrewrite.java.spring.boot2.AddSpringBootStarterValidation

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:2.3.x