[MGNLMAIL-135] Update javax.activation dependency to jakarta.activation Created: 14/Jul/22  Updated: 26/Sep/22  Resolved: 30/Aug/22

Status: Closed
Project: Magnolia Mail Module
Component/s: None
Affects Version/s: 5.5.13
Fix Version/s: 5.5.14, 6.0.0

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Chuong Doan Huy
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLMAIL-124 Let module use Jakarta Mail Open
is related to BUILD-871 Manage jakarta.activation dependencies Open
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLMAIL-137 Implement Sub-task Completed Chuong Doan Huy  
MGNLMAIL-138 Review code Sub-task Completed Mikaël Geljić  
MGNLMAIL-139 Pre-int QA Sub-task Closed Dai Ha  
MGNLMAIL-140 Final QA Sub-task Completed Jaroslav Simak  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Epic Link: Support
Sprint: DevX 17
Story Points: 3
Team: DeveloperX

 Description   

After BUILD-871 is completed the mail module should be updated to use the managed dependency.

 \- info.magnolia:magnolia-module-mail:jar:5.5.10:compile
[INFO] |     +- com.sun.mail:javax.mail:jar:1.6.2:provided
[INFO] |     +- javax.activation:activation:jar:1.1.1:compile

Notes
It seems javax.activation is deprecated in Java 9
Move from:

<dependency>
  <groupId>javax.activation</groupId>
  <artifactId>activation</artifactId>
</dependency>

to

<dependency>
    <groupId>jakarta.activation</groupId>
    <artifactId>jakarta.activation</artifactId>
</dependency>

However, trying locally I am able to remove both of these dependencies from the mail pom without any problems:

<dependency>
    <groupId>jakarta.activation</groupId>
    <artifactId>jakarta.activation-api</artifactId>
    <version>1.2.2</version>
 </dependency>
...
...
<dependency>
    <groupId>javax.activation</groupId>
    <artifactId>activation</artifactId>
</dependency>

Generated at Mon Feb 12 06:03:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.