Skip to content

Commit

Permalink
fix: downgrade jakarta.mail to 1.6.7
Browse files Browse the repository at this point in the history
JakartaMail 2.x switched to the new `jakarta.mail` namespace.
So libraries using earlier versions of JakartaMail/JavaMail will not work with it as they need the `javax.mail` namespace.

Spring 5.x is importing stuff from `javax.mail` namespace and so cannot be used with JakartaMail 2.x for now.

According to Support for Jakarta EE 9 (annotations and interfaces in jakarta.* namespace), Spring will switch to using the jakarta.* namespace in Spring Framework 6 / Spring Boot 3. For details see: spring-projects/spring-framework#25354
  • Loading branch information
gaetanmaisse committed Jan 17, 2022
1 parent 0d23dd0 commit 19ce194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<jakarta.validation-api.version>2.0.2</jakarta.validation-api.version>
<jakarta.annotation-api.version>1.3.5</jakarta.annotation-api.version>
<javax.inject.version>1</javax.inject.version>
<jakarta.mail.version>2.0.1</jakarta.mail.version>
<jakarta.mail.version>1.6.7</jakarta.mail.version>
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
<jakarta.transaction-api.version>1.3.3</jakarta.transaction-api.version>
<jakarta.activation-api.version>1.2.2</jakarta.activation-api.version>
Expand Down

0 comments on commit 19ce194

Please sign in to comment.