Add javax.validation-api dependency

MSAL

Conditional on the application using a version of Spring Boot which uses javax but provides a hibernate-validator version which exports the jakarta.validation-api instead.

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

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 javax.validation:validation-api:2.x
  2. Add Gradle or Maven dependency javax.validation:validation-api:2.x