Update Apache Commons Email to Email2 for Jakarta

MSAL

Replace commons-email with commons-email2-jakarta 2.0.x, and move the org.apache.commons.mail types to their Email2 packages.

org.openrewrite.java.migrate.jakarta.UpdateApacheCommonsEmailDependencies
mod run . --recipe=org.openrewrite.java.migrate.jakarta.UpdateApacheCommonsEmailDependencies

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. Change Gradle or Maven dependency org.apache.commons:commons-email
  2. Change type org.apache.commons.mail.EmailException to org.apache.commons.mail2.core.EmailException
  3. Change type org.apache.commons.mail.EmailConstants to org.apache.commons.mail2.core.EmailConstants
  4. Change type org.apache.commons.mail.EmailUtils to org.apache.commons.mail2.core.EmailUtils
  5. Rename package name org.apache.commons.mail to org.apache.commons.mail2.jakarta