Skip to content

Commit 734a1da

Browse files
committed
feat(java): Require Jenkins core 2.479.1 and Java 17.
1 parent a8c196d commit 734a1da

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

pom.xml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.jenkins-ci.plugins</groupId>
66
<artifactId>plugin</artifactId>
7-
<version>4.6</version>
7+
<version>5.7</version>
88
<relativePath />
99
</parent>
1010
<groupId>io.jenkins.plugins</groupId>
@@ -14,8 +14,9 @@
1414
<properties>
1515
<revision>0.2</revision>
1616
<changelist>-SNAPSHOT</changelist>
17-
<jenkins.version>2.176.4</jenkins.version>
18-
<java.level>8</java.level>
17+
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
18+
<jenkins.baseline>2.479</jenkins.baseline>
19+
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
1920
</properties>
2021
<name>Secure Post Script Plugin</name>
2122
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
@@ -24,8 +25,8 @@
2425
<dependencies>
2526
<dependency>
2627
<groupId>io.jenkins.tools.bom</groupId>
27-
<artifactId>bom-2.235.x</artifactId>
28-
<version>11</version>
28+
<artifactId>bom-${jenkins.baseline}.x</artifactId>
29+
<version>4136.vca_c3202a_7fd1</version>
2930
<scope>import</scope>
3031
<type>pom</type>
3132
</dependency>
@@ -39,15 +40,8 @@
3940
</license>
4041
</licenses>
4142

42-
<developers>
43-
<developer>
44-
<id>geekchow</id>
45-
<name>Phil Zhou</name>
46-
</developer>
47-
</developers>
48-
4943
<scm>
50-
<connection>scm:git:git://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
44+
<connection>scm:git:https://github.com/jenkinsci/${project.artifactId}-plugin.git</connection>
5145
<developerConnection>scm:git:[email protected]:jenkinsci/${project.artifactId}-plugin.git</developerConnection>
5246
<url>https://github.com/jenkinsci/${project.artifactId}-plugin</url>
5347
<tag>secure-post-script-0.1-SNAPSHOT</tag>

src/main/java/io/jenkins/plugins/securepostscript/SecurePostScriptConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript;
1010
import org.kohsuke.stapler.DataBoundSetter;
1111
import org.kohsuke.stapler.QueryParameter;
12-
import org.kohsuke.stapler.StaplerRequest;
12+
import org.kohsuke.stapler.StaplerRequest2;
1313

1414
import javax.annotation.CheckForNull;
1515

@@ -54,7 +54,7 @@ public String getRunCondition() {
5454
}
5555

5656
@Override
57-
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
57+
public boolean configure(StaplerRequest2 req, JSONObject json) throws FormException {
5858
this.runCondition = Result.fromString(json.getString("runCondition"));
5959
save();
6060
return super.configure(req, json);

0 commit comments

Comments
 (0)