From 201ba9214874b7822484432e0a5e1e32445b36e6 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 21 Jan 2022 10:39:34 -0800 Subject: [PATCH 1/3] Use detached plugin --- pom.xml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 919040c6..7bc443ce 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ 2.25 -SNAPSHOT - 2.263.1 + 2.331 8 true jenkinsci/${project.artifactId}-plugin @@ -73,8 +73,8 @@ io.jenkins.tools.bom - bom-2.263.x - 984.vb5eaac999a7e + bom-weekly + 1117.v62a_f6a_01de98 import pom @@ -143,6 +143,12 @@ javadoc 1.6 test + + + org.jenkins-ci + symbol-annotation + + org.jenkins-ci.plugins From d2ef6c4f16d6d7b430e9edb162b93de1f6ad6b46 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 21 Jan 2022 10:45:01 -0800 Subject: [PATCH 2/3] Migrate to Jakarta Mail --- pom.xml | 9 +++++---- .../org/jenkinsci/plugins/workflow/steps/MailStep.java | 8 ++++---- .../jenkinsci/plugins/workflow/steps/CoreStepTest.java | 2 +- .../jenkinsci/plugins/workflow/steps/MailStepTest.java | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index 7bc443ce..bc196030 100644 --- a/pom.xml +++ b/pom.xml @@ -88,6 +88,7 @@ org.jenkins-ci.plugins mailer + 410.va_7940d9ded39 org.jenkins-ci.plugins.workflow @@ -161,12 +162,12 @@ test org.jvnet.mock-javamail mock-javamail - 1.12 + 2.0 test io.jenkins.plugins - javax-mail-api - 1.6.2-5 + jakarta-mail-api + 2.0.0-5 org.jenkins-ci.main diff --git a/src/main/java/org/jenkinsci/plugins/workflow/steps/MailStep.java b/src/main/java/org/jenkinsci/plugins/workflow/steps/MailStep.java index 6568f399..277fa59e 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/steps/MailStep.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/steps/MailStep.java @@ -37,10 +37,10 @@ import org.kohsuke.stapler.DataBoundSetter; import edu.umd.cs.findbugs.annotations.NonNull; -import javax.mail.Address; -import javax.mail.Message; -import javax.mail.Transport; -import javax.mail.internet.MimeMessage; +import jakarta.mail.Address; +import jakarta.mail.Message; +import jakarta.mail.Transport; +import jakarta.mail.internet.MimeMessage; /** * Simple email sender step. diff --git a/src/test/java/org/jenkinsci/plugins/workflow/steps/CoreStepTest.java b/src/test/java/org/jenkinsci/plugins/workflow/steps/CoreStepTest.java index 8a0fa401..6b535022 100644 --- a/src/test/java/org/jenkinsci/plugins/workflow/steps/CoreStepTest.java +++ b/src/test/java/org/jenkinsci/plugins/workflow/steps/CoreStepTest.java @@ -38,7 +38,7 @@ import java.io.IOException; import java.util.List; import edu.umd.cs.findbugs.annotations.NonNull; -import javax.mail.internet.InternetAddress; +import jakarta.mail.internet.InternetAddress; import jenkins.plugins.mailer.tasks.i18n.Messages; import jenkins.tasks.SimpleBuildStep; import org.hamcrest.Matchers; diff --git a/src/test/java/org/jenkinsci/plugins/workflow/steps/MailStepTest.java b/src/test/java/org/jenkinsci/plugins/workflow/steps/MailStepTest.java index 64dd4ed3..aaf170ac 100644 --- a/src/test/java/org/jenkinsci/plugins/workflow/steps/MailStepTest.java +++ b/src/test/java/org/jenkinsci/plugins/workflow/steps/MailStepTest.java @@ -25,8 +25,8 @@ import hudson.model.Result; import java.util.List; -import javax.mail.Message; -import javax.mail.internet.MimeMultipart; +import jakarta.mail.Message; +import jakarta.mail.internet.MimeMultipart; import org.hamcrest.Matchers; import org.jenkinsci.plugins.workflow.actions.ArgumentsAction; import org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition; From 47442fb3459786d05e81884b67b702c392ebae90 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 19 Jul 2022 12:45:09 -0400 Subject: [PATCH 3/3] https://github.com/jenkinsci/mailer-plugin/pull/144 released --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fd943262..cea85034 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ org.jenkins-ci.plugins mailer - 410.va_7940d9ded39 + 435.v79ef3972b_5c7 org.jenkins-ci.plugins.workflow