From 172cf684510f29d3a3f2691c64fb991d38705c74 Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Sat, 15 Feb 2025 16:22:35 +0100 Subject: [PATCH] chore: Upgrade to latest LTS core version supporting Java 8 (requires 2.346.3) --- pom.xml | 35 +++++++------------ .../cloudevents/listeners/CEJobListener.java | 2 -- 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index 2149877..6c62c0f 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.jenkins-ci.plugins plugin - 4.16 + 4.51 @@ -17,8 +17,9 @@ 1.0.0 -SNAPSHOT - 2.277.4 - 8 + + 2.346 + ${jenkins.baseline}.3 jenkinsci/${project.artifactId}-plugin @@ -30,8 +31,8 @@ io.jenkins.tools.bom - bom-2.277.x - 26 + bom-${jenkins.baseline}.x + 1763.v092b_8980a_f5e import pom @@ -41,6 +42,11 @@ jackson2-api 2.11.3 + + org.powermock + powermock-module-junit4 + 2.0.9 + @@ -52,14 +58,6 @@ - - - ShrutiC-git - Shruti Chaturvedi - shrutichaturvedi16.sc@gmail.com - - - @@ -90,7 +88,6 @@ io.jenkins configuration-as-code - 1.35 true @@ -105,7 +102,6 @@ org.junit.jupiter junit-jupiter-engine - 5.2.0 test @@ -113,14 +109,12 @@ org.mockito mockito-core - 3.7.7 test org.mockito mockito-inline - 2.13.0 test @@ -128,7 +122,6 @@ org.powermock powermock-module-junit4 - 2.0.9 test @@ -143,7 +136,6 @@ io.jenkins.plugins plugin-util-api - 2.0.0 @@ -167,7 +159,6 @@ io.jenkins.configuration-as-code test-harness - 1.35 test @@ -178,7 +169,6 @@ org.jacoco jacoco-maven-plugin - 0.8.6 default-prepare-agent @@ -199,13 +189,12 @@ org.apache.maven.plugins maven-surefire-plugin - 2.20 - scm:git:git://github.com/${gitHubRepo}.git + scm:git:https://github.com/${gitHubRepo}.git scm:git:git@github.com:${gitHubRepo}.git https://github.com/${gitHubRepo} ${scmTag} diff --git a/src/main/java/io/jenkins/plugins/cloudevents/listeners/CEJobListener.java b/src/main/java/io/jenkins/plugins/cloudevents/listeners/CEJobListener.java index ecde21b..0bd0522 100644 --- a/src/main/java/io/jenkins/plugins/cloudevents/listeners/CEJobListener.java +++ b/src/main/java/io/jenkins/plugins/cloudevents/listeners/CEJobListener.java @@ -7,8 +7,6 @@ import hudson.model.listeners.RunListener; import io.jenkins.plugins.cloudevents.Stage; -import java.util.Date; - /** * Class which implements RunListener and responds to events relating to run of a job.