Skip to content

Commit

Permalink
Merge pull request #388 from basil/jakarta
Browse files Browse the repository at this point in the history
Migrate from EE 8 to EE 9
  • Loading branch information
TobiX authored Feb 4, 2025
2 parents 457ad8d + a2dd2fa commit 35014e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.86</version>
<version>5.6</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -45,8 +45,8 @@
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<jenkins.baseline>2.440</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
<jenkins.baseline>2.479</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
<spotless.check.skip>false</spotless.check.skip>
</properties>

Expand All @@ -56,7 +56,7 @@
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>3435.v238d66a_043fb_</version>
<version>3850.vb_c5319efa_e29</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/hudson/plugins/view/dashboard/Dashboard.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
import hudson.model.ListView;
import hudson.model.TopLevelItem;
import hudson.model.ViewDescriptor;
import jakarta.servlet.ServletException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import javax.servlet.ServletException;
import jenkins.security.stapler.StaplerDispatchable;
import net.sf.json.JSONObject;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.DoNotUse;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;

/**
* View that can be customized with portlets to show the selected jobs information in various ways.
Expand Down Expand Up @@ -197,7 +197,7 @@ public synchronized List<Job> getJobs() {
}

@Override
protected synchronized void submit(StaplerRequest req) throws IOException, ServletException, FormException {
protected synchronized void submit(StaplerRequest2 req) throws IOException, ServletException, FormException {
super.submit(req);

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.util.Comparator;
import jenkins.model.Jenkins;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;

/**
* Report that can summarize project data across multiple projects and display the resulting data.
Expand All @@ -34,7 +34,7 @@ public String getName() {

public Dashboard getDashboard() {
// TODO Can the dashboard instance be a field on this class -- parent?
StaplerRequest req = Stapler.getCurrentRequest();
StaplerRequest2 req = Stapler.getCurrentRequest2();
return req != null ? req.findAncestorObject(Dashboard.class) : null;
}

Expand Down

0 comments on commit 35014e4

Please sign in to comment.