diff --git a/.travis.yml b/.travis.yml
index 761e4ee8..a3670e43 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,9 @@ language: java
jdk:
- oraclejdk8
+ - oraclejdk11
+ - openjdk10
+ - openjdk11
env:
matrix:
diff --git a/pom.xml b/pom.xml
index c3e6ad7a..2b2e070d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,11 +4,11 @@
org.jenkins-ci.plugins
plugin
- 3.47
+ 3.48
- 2.138.1
+ 2.164.3
8
UTF-8
diff --git a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java
index 11964d98..5f13d1bd 100644
--- a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java
+++ b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketChatNotifier.java
@@ -30,10 +30,10 @@
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.export.Exported;
-import sun.security.validator.ValidatorException;
import javax.net.ssl.SSLHandshakeException;
import java.io.IOException;
+import java.security.cert.CertificateException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -542,6 +542,7 @@ public void setBuildServerUrl(String buildServerUrl) {
public void setTrustSSL(boolean trustSSL) {
this.trustSSL = trustSSL;
}
+
@DataBoundSetter
public void setWebhookToken(String webhookToken) {
this.webhookToken = webhookToken;
@@ -626,7 +627,7 @@ public FormValidation doTestConnection(@QueryParameter("rocketServerUrl") final
return FormValidation.ok("Success");
} catch (Exception e) {
if (e.getCause() != null &&
- e.getCause().getClass() == SSLHandshakeException.class || e.getCause().getClass() == ValidatorException.class) {
+ e.getCause().getClass() == SSLHandshakeException.class || e.getCause().getClass() == CertificateException.class) {
LOGGER.log(Level.SEVERE, "SSL error during trying to send rocket message", e);
return FormValidation.error(e, "SSL error", e);
} else {
diff --git a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketClient.java b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketClient.java
index 688d3c7d..e73d6d6b 100644
--- a/src/main/java/jenkins/plugins/rocketchatnotifier/RocketClient.java
+++ b/src/main/java/jenkins/plugins/rocketchatnotifier/RocketClient.java
@@ -1,8 +1,8 @@
package jenkins.plugins.rocketchatnotifier;
import jenkins.plugins.rocketchatnotifier.rocket.errorhandling.RocketClientException;
-import sun.security.validator.ValidatorException;
+import java.security.cert.CertificateException;
import java.util.List;
import java.util.Map;
@@ -16,5 +16,5 @@ public interface RocketClient {
boolean publish(String message, String emoji, String avatar, List