Skip to content

Commit

Permalink
Merge pull request #85 from NotMyFault/feat/master/jdk-17
Browse files Browse the repository at this point in the history
Add Java 17 compatibility, EOL JSR 305 and bump bom baseline
  • Loading branch information
KocproZ authored Aug 22, 2022
2 parents d22593b + 7598d8b commit e2b887e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.3</version>
<version>1.4</version>
</extension>
</extensions>
19 changes: 8 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.33</version>
<version>4.46</version>
<relativePath />
</parent>

<name>Discord Notifier</name>
<description>Discord Notifier allows you to send Discord embeds about your builds via Discord's webhooks.
</description>
<url>https://github.com/jenkinsci/discord-notifier-plugin/blob/master/README.md</url>
<url>https://github.com/jenkinsci/discord-notifier-plugin</url>

<groupId>nz.co.jammehcow</groupId>
<artifactId>discord-notifier</artifactId>
Expand All @@ -23,13 +21,12 @@
<revision>1.4.15</revision>
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/discord-notifier-plugin</gitHubRepo>
<jenkins.version>2.235.1</jenkins.version>
<java.level>8</java.level>
<jenkins.version>2.319.3</jenkins.version>
<no-test-jar>false</no-test-jar>
</properties>

<scm>
<connection>scm:git:git://github.com/${gitHubRepo}.git</connection>
<connection>scm:git:https://github.com/${gitHubRepo}.git</connection>
<developerConnection>scm:git:[email protected]:${gitHubRepo}.git</developerConnection>
<url>https://github.com/${gitHubRepo}</url>
<tag>${scmTag}</tag>
Expand All @@ -38,7 +35,7 @@
<licenses>
<license>
<name>MIT License</name>
<url>http://opensource.org/licenses/MIT</url>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>

Expand Down Expand Up @@ -73,8 +70,8 @@
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.235.x</artifactId>
<version>918.vae501d2cdc99</version>
<artifactId>bom-2.319.x</artifactId>
<version>1589.v952386a_7b_85a</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand All @@ -85,7 +82,7 @@
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>3.13.6</version>
<version>3.13.10</version>
</dependency>

<!-- for workflow support -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;

import javax.annotation.Nonnull;
import edu.umd.cs.findbugs.annotations.NonNull;
import javax.inject.Inject;
import jenkins.model.JenkinsLocationConfiguration;

Expand Down Expand Up @@ -267,7 +267,7 @@ public String getFunctionName() {
return "discordSend";
}

@Nonnull
@NonNull
@Override
public String getDisplayName() {
return "Send an embed message to Webhook URL";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package nz.co.jammehcow.jenkinsdiscord;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.EnvVars;
import hudson.Extension;
import hudson.Launcher;
Expand Down Expand Up @@ -27,6 +28,7 @@
* Date: 22/04/17.
*/

@SuppressFBWarnings(value = "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE", justification = "Requires triage")
public class WebhookPublisher extends Notifier {
private final String webhookURL;
private final String branchName;
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/index.jelly
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?jelly escape-by-default='true'?>
<div>
Discord Notifier allows you to send Discord embeds about your builds via Discord's webhooks.
</div>

0 comments on commit e2b887e

Please sign in to comment.