-
Notifications
You must be signed in to change notification settings - Fork 196
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
Conversation
<dependency> | ||
<groupId>io.jenkins.plugins</groupId> | ||
<artifactId>jakarta-mail-api</artifactId> | ||
<scope>test</scope> | ||
</dependency> |
There was a problem hiding this comment.
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:
- It comes first in group ID order, which is how Spotless would sort it.
- There was previously a requirement that
mock-javamail
come first, but that is no longer needed after implementing the system properties described in docs: clarify usage for tests with jvm system properties lib-mock-javamail#53.
<dependency> | ||
<groupId>io.jenkins.plugins</groupId> | ||
<artifactId>jakarta-activation-api</artifactId> | ||
<version>2.1.3-1</version> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
<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> |
There was a problem hiding this comment.
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 (!).
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/