Update Apache Commons Email to Email2 for Jakarta
MSALReplace 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. UpdateApacheCommonsEmailDependenciesmod run . --recipe= org. openrewrite. java. migrate. jakarta. UpdateApacheCommonsEmailDependenciesInstall 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.
- Change Gradle or Maven dependency
org.apache.commons:commons-email - Change type
org.apache.commons.mail.EmailExceptiontoorg.apache.commons.mail2.core.EmailException - Change type
org.apache.commons.mail.EmailConstantstoorg.apache.commons.mail2.core.EmailConstants - Change type
org.apache.commons.mail.EmailUtilstoorg.apache.commons.mail2.core.EmailUtils - Rename package name
org.apache.commons.mailtoorg.apache.commons.mail2.jakarta