diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
new file mode 100644
index 000000000..1f3636409
--- /dev/null
+++ b/.mvn/extensions.xml
@@ -0,0 +1,7 @@
+
+
+ io.jenkins.tools.incrementals
+ git-changelist-maven-extension
+ 1.7
+
+
diff --git a/.mvn/maven.config b/.mvn/maven.config
new file mode 100644
index 000000000..2a0299c48
--- /dev/null
+++ b/.mvn/maven.config
@@ -0,0 +1,2 @@
+-Pconsume-incrementals
+-Pmight-produce-incrementals
diff --git a/Jenkinsfile b/Jenkinsfile
index 1bc4eb37a..cc871a9f0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,6 +1,5 @@
// Builds a module using https://github.com/jenkins-infra/pipeline-library
buildPlugin(useContainerAgent: true, configurations: [
- [platform: 'linux', jdk: 11],
- [platform: 'windows', jdk: 11],
- [platform: 'linux', jdk: 17]
+ [platform: 'linux', jdk: 21],
+ [platform: 'windows', jdk: 17],
])
diff --git a/pom.xml b/pom.xml
index 256e4bd9e..bad4264fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,3 +1,4 @@
+
4.0.0
@@ -5,25 +6,31 @@
org.jenkins-ci.plugins
plugin
- 4.52
+ 4.79
+
p4
- 1.15.2-SNAPSHOT
+ ${revision}${changelist}
hpi
P4 Plugin
Perforce Client plugin for the Jenkins SCM provider.
- https://github.com/jenkinsci/p4-plugin
+ https://github.com/jenkinsci/${project.artifactId}-plugin
- 2.361.4
+ 1.15.2
+ -SNAPSHOT
+ 2.414.3
+ jenkinsci/${project.artifactId}-plugin
+
+ High
- scm:git:https://github.com/jenkinsci/${project.artifactId}-plugin.git
- scm:git:git@github.com:jenkinsci/${project.artifactId}-plugin.git
- https://github.com/jenkinsci/${project.artifactId}-plugin
- p4-1.15.0
+ scm:git:https://github.com/${gitHubRepo}.git
+ scm:git:git@github.com:${gitHubRepo}.git
+ https://github.com/${gitHubRepo}
+ ${scmTag}
@@ -57,8 +64,8 @@
io.jenkins.tools.bom
- bom-2.361.x
- 2102.v854b_fec19c92
+ bom-2.414.x
+ 2884.vc36b_64ce114a_
import
pom
@@ -71,42 +78,70 @@
com.perforce
p4java
2023.2.2553500
+
+
+
+ commons-codec
+ commons-codec
+
+
+ commons-io
+ commons-io
+
+
+
+ org.apache.commons
+ commons-lang3
+
+
- org.apache.commons
- commons-lang3
- 3.12.0
+ io.jenkins.plugins
+ commons-lang3-api
org.apache.commons
commons-exec
1.3
+ test
- com.google.code.gson
- gson
- 2.9.0
+ io.jenkins.plugins
+ gson-api
com.mashape.unirest
unirest-java
1.4.9
+
+
+
+ org.apache.httpcomponents
+ httpasyncclient
+
+
+ org.apache.httpcomponents
+ httpclient
+
+
+ org.apache.httpcomponents
+ httpmime
+
+
+
+ org.json
+ json
+
+
- org.apache.httpcomponents
- httpclient
- 4.5.13
-
-
-
- org.apache.httpcomponents
- httpmime
- 4.5.13
+ org.jenkins-ci.plugins
+ apache-httpcomponents-client-4-api
@@ -129,7 +164,6 @@
org.jenkins-ci.plugins
structs
- 324.va_f5d6774f3a_d
@@ -169,7 +203,7 @@
org.jenkins-ci.plugins
multiple-scms
- 0.6
+ 0.8
true
@@ -219,9 +253,8 @@
- org.json
- json
- 20231013
+ io.jenkins.plugins
+ json-api
diff --git a/src/main/java/org/jenkinsci/plugins/p4/credentials/P4CredentialsImpl.java b/src/main/java/org/jenkinsci/plugins/p4/credentials/P4CredentialsImpl.java
index 0ce8d2ff9..37c17cc6d 100644
--- a/src/main/java/org/jenkinsci/plugins/p4/credentials/P4CredentialsImpl.java
+++ b/src/main/java/org/jenkinsci/plugins/p4/credentials/P4CredentialsImpl.java
@@ -35,7 +35,7 @@ static public ListBoxModel doFillCredentialItems() {
acl, domain);
if (credentials.isEmpty()) {
- list.add("Select credential...", null);
+ list.add("Select credential...", "");
}
for (P4BaseCredentials c : credentials) {
StringBuffer sb = new StringBuffer();
diff --git a/src/test/java/org/jenkinsci/plugins/p4/client/FreeStyleTest.java b/src/test/java/org/jenkinsci/plugins/p4/client/FreeStyleTest.java
index dd54ada48..6f748aa72 100644
--- a/src/test/java/org/jenkinsci/plugins/p4/client/FreeStyleTest.java
+++ b/src/test/java/org/jenkinsci/plugins/p4/client/FreeStyleTest.java
@@ -1,8 +1,8 @@
package org.jenkinsci.plugins.p4.client;
-import com.gargoylesoftware.htmlunit.html.HtmlForm;
-import com.gargoylesoftware.htmlunit.html.HtmlInput;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import org.htmlunit.html.HtmlForm;
+import org.htmlunit.html.HtmlInput;
+import org.htmlunit.html.HtmlPage;
import com.perforce.p4java.option.server.CounterOptions;
import com.perforce.p4java.server.IOptionsServer;
import hudson.model.Action;
diff --git a/src/test/java/org/jenkinsci/plugins/p4/review/ReviewImplTest.java b/src/test/java/org/jenkinsci/plugins/p4/review/ReviewImplTest.java
index 286ec2fb7..d92a09ff2 100644
--- a/src/test/java/org/jenkinsci/plugins/p4/review/ReviewImplTest.java
+++ b/src/test/java/org/jenkinsci/plugins/p4/review/ReviewImplTest.java
@@ -1,7 +1,7 @@
package org.jenkinsci.plugins.p4.review;
-import com.gargoylesoftware.htmlunit.html.HtmlElement;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import org.htmlunit.html.HtmlElement;
+import org.htmlunit.html.HtmlPage;
import hudson.model.Action;
import hudson.model.FreeStyleProject;
import hudson.model.ParameterValue;
diff --git a/src/test/java/org/jenkinsci/plugins/p4/scm/PerforceSCMSourceTest.java b/src/test/java/org/jenkinsci/plugins/p4/scm/PerforceSCMSourceTest.java
index 316c4fc67..2debec5c2 100644
--- a/src/test/java/org/jenkinsci/plugins/p4/scm/PerforceSCMSourceTest.java
+++ b/src/test/java/org/jenkinsci/plugins/p4/scm/PerforceSCMSourceTest.java
@@ -6,7 +6,7 @@
import com.cloudbees.plugins.credentials.CredentialsScope;
import com.cloudbees.plugins.credentials.CredentialsStore;
import com.cloudbees.plugins.credentials.domains.Domain;
-import com.gargoylesoftware.htmlunit.html.HtmlPage;
+import org.htmlunit.html.HtmlPage;
import com.perforce.p4java.core.IStream;
import com.perforce.p4java.core.IStreamSummary;
import com.perforce.p4java.core.IStreamViewMapping;