Skip to content

Commit

Permalink
Merge pull request #231 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 Jan 22, 2025
2 parents 216a06b + 549a840 commit 6367d3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.5</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -43,8 +43,8 @@
<changelist>999999-SNAPSHOT</changelist>
<gitHubRepo>jenkinsci/simple-theme-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>
<hpi.compatibleSinceVersion>171</hpi.compatibleSinceVersion>
<spotless.check.skip>false</spotless.check.skip>
</properties>
Expand All @@ -54,7 +54,7 @@
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>3234.v5ca_5154341ef</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/org/codefirst/SimpleThemeDecorator.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.kohsuke.stapler.Ancestor;
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;

@Extension
@Symbol("simpleTheme")
Expand All @@ -46,7 +46,7 @@ public SimpleThemeDecorator() {
}

@Override
public boolean configure(StaplerRequest req, JSONObject formData) throws FormException {
public boolean configure(StaplerRequest2 req, JSONObject formData) throws FormException {
elements.clear();
req.bindJSON(this, formData);
save();
Expand Down Expand Up @@ -146,7 +146,7 @@ public String getHeaderHtml() {
* @return true if it is okay to inject CSS
*/
public boolean shouldInjectCss() {
StaplerRequest req = Stapler.getCurrentRequest();
StaplerRequest2 req = Stapler.getCurrentRequest2();
if (req == null) {
return false;
}
Expand Down

0 comments on commit 6367d3d

Please sign in to comment.