diff --git a/pom.xml b/pom.xml index c32b579..7e1da68 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ 999999-SNAPSHOT - 2.289.1 + 2.332.1 jenkinsci/${project.artifactId}-plugin true @@ -31,8 +31,8 @@ io.jenkins.tools.bom - bom-2.289.x - 1075.v14bef33e5d7b + bom-2.332.x + 1155.v77b_fd92a_26fc import pom @@ -53,10 +53,6 @@ org.hamcrest hamcrest-core - - javax.annotation - javax.annotation-api - @@ -79,7 +75,6 @@ io.jenkins.plugins javax-mail-api - 1.6.2-2 org.mockito diff --git a/src/test/java/hudson/tasks/MailerTest.java b/src/test/java/hudson/tasks/MailerTest.java index 8f55593..ab489fc 100644 --- a/src/test/java/hudson/tasks/MailerTest.java +++ b/src/test/java/hudson/tasks/MailerTest.java @@ -60,6 +60,7 @@ import jenkins.model.JenkinsLocationConfiguration; import java.io.IOException; +import java.io.UncheckedIOException; import java.util.Collection; import java.util.Optional; import java.util.concurrent.atomic.AtomicLong; @@ -300,9 +301,8 @@ public CleanJenkinsLocationConfiguration() { public synchronized void load() { try { getConfigFile().delete(); - } catch (Exception e) { - // TODO 2.325+ catch IOException and throw UncheckedIOException - throw new RuntimeException(e); + } catch (IOException e) { + throw new UncheckedIOException(e); } super.load(); }