Skip to content

Upgrade to Jakarta Mail 2.x.x #295

Closed

Description

@georgesolomon

Jakarta Mail 2.0.0 release is the first release with package namespace changed to jakarta.mail. The main jar file is located at com.sun.mail:jakarta.mail.

This release contains no other enhancements nor bug fixes, except for the minimal required Java SE version which is now Java SE 8. This is also the release included in Jakarta EE 9. Applications are able to switch to this new version by just changing all imports that use javax.mail.* to instead use jakarta.mail.*.

Activity

  1. Rakambda commented on Nov 24, 2020

    @Rakambda

    Will have to update jakarta.activation too.

    I think that these dependencies will have to update to new namespace before:

    • net.markenwerk:utils-mail-dkim
    • net.markenwerk:utils-mail-smime
    • org.simplejavamail:smtp-connection-pool (because of com.github.bbottema:clustered-object-pool)
  2. bbottema commented on Nov 24, 2020

    @bbottema
    Owner

    I have avoided switching to Java8 until now as Java7 still had a market share of around 5-10% until recently (off the top of my head). I'll do a new survey and see if a switch can be made more safely now...

  3. jakobkmar commented on May 2, 2021

    @jakobkmar

    Could you please consider removing the low priority label from this?

    An upgrade to version 2.0.0 or higher would be great, as other libraries already made that change, which leads to incompatibility for the following reason (illustrated in steps):

    1. the other library has version 2.0.0 as a dependency, SimpleJavaMail has a lower version as a dependency
    2. the buildsystem now chooses the higher version automatically, meaning that the lower version won't be available as a library
    3. now due to the change in the package structure, SimpleJavaMail can't access the required parts of jakarta mail anymore, as it expects them to be at javax.mail (where they aren't)

    This means, that it currently is impossible to use SimpleJavaMail together with other libraries which implement a newer version of jakarta mail.

  4. bbottema commented on Jun 4, 2021

    @bbottema
    Owner

    I started migrating to Jakarta Mail 2.0.0. As https://github.com/markenwerk/java-utils-mail-smime is archived, I'm forking it so I can update the dependencies to Jakarta Mail 2.0.0 as well. I'll go ahead and merge some of my ignore pull requests as well, so I can clean up Simple Java Mail a bit finally.

  5. added this to the 7.0.0 milestone on Jun 12, 2021
  6. bbottema commented on Jun 28, 2021

    @bbottema
    Owner

    I'm in talks with the developers (both last one and original developers) to obtain permissions to relicense S/MIME under ApacheV2 and have procured 2 out of 3 permissions. When that's done, I'll start upgrading those projects.

  7. jhult commented on Dec 21, 2021

    @jhult
    Contributor

    @bbottema, any news on this?

  8. bbottema commented on Dec 24, 2021

    @bbottema
    Owner

    Yes, I've obtained all permissions and started migrating to Java 8 and Jakarta new version some time ago, but I put it on hold for some time to catch some breath. I've recently started picking up some maintenance work again to get back into the flow so I hope to pick this up again soon.

    Update, 6 September 2026: The written permissions and related correspondence are now preserved in the java-utils-mail-smime repository.

  9. added a commit that references this issue on Dec 26, 2021
  10. changed the title [-]Upgrade to Jakarta Mail 2.0.0 Final[/-] [+]Upgrade to Jakarta Mail 2.x.x[/+] on Dec 28, 2021
  11. added 3 commits that reference this issue on Dec 28, 2021
  12. bbottema commented on Dec 28, 2021

    @bbottema
    Owner

    Alright, things are looking up. I've upgraded everything to Java 8, Jakarta 2.0.1 and latest log4j version due to the recent security issues there. I've forked and migrated markenwerk DKIM and S/MIME to the Simple Java Mail space, with permissions of all parties involved and everything is not up to day and under ApacheV2 license.

  13. added a commit that references this issue on Jan 2, 2022
  14. bbottema commented on Jan 2, 2022

    @bbottema
    Owner

    7.0.0 just released with the upgrade to Jakarta Mail 2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions