Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to Jakarta Activation and Jakarta Mail upgrades #321

Merged
merged 1 commit into from
May 20, 2024

Conversation

basil
Copy link
Member

@basil basil commented Mar 4, 2024

Adapts to recent releases of Jakarta Activation and Jakarta Mail, which use new Maven coordinates.

Testing done

CI build is green: https://ci.jenkins.io/job/Plugins/job/maven-plugin/job/PR-321/3/

@basil basil added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Mar 4, 2024
@basil basil changed the title Test Jakarta Activation and Jakarta Mail upgrades Adapt to Jakarta Activation and Jakarta Mail upgrades Mar 4, 2024
Comment on lines +775 to +779
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>jakarta-mail-api</artifactId>
<scope>test</scope>
</dependency>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving this above the mock-javamail dependency for a few reasons:

<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>jakarta-activation-api</artifactId>
<version>2.1.3-1</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First version with the new Jakarta packages.

<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>jakarta-mail-api</artifactId>
<version>2.1.3-1</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First version with the new Jakarta packages.

<dependency>
<groupId>org.jvnet.mock-javamail</groupId>
<artifactId>mock-javamail</artifactId>
<version>2.1</version>
<version>2.2</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First version with the new Jakarta packages.

Comment on lines +856 to +858
<mail.smtp.class>org.jvnet.mock_javamail.MockTransport</mail.smtp.class>
<mail.pop3.class>org.jvnet.mock_javamail.MockStore</mail.pop3.class>
<mail.imap.class>org.jvnet.mock_javamail.MockStore</mail.imap.class>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deterministic use of Mock Javamail rather than relying on it being first in the classpath (!).

@jglick jglick merged commit 550b779 into jenkinsci:master May 20, 2024
14 checks passed
@basil basil added internal and removed dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants