Skip to content

Commit e052710

Browse files
authored
Prepare for Java 25 release Sep 16, 2025 (#496)
The Jenkins project strives to support new Java Long Term Support releases soon after they are released. Java 25 is the next LTS release and is scheduled to release Sep 16, 2025. The Jenkins project hopes to compile and test Jenkins core and the top 200 Jenkins plugins with Java 25 before Oct 31, 2025. Without this change, the plugin does not compile with Java 24. We expect Java 25 will be a superset of Java 24, so let's fix compilation with Java 24 even though Jenkins does not support Java 24. Also fixes a spotless formatting issue by updating the parent pom. Supersedes pull requests: * #492 * #491 Testing done: * Confirmed that `mvn spotless:apply` does not change formatting with either Java 17 or Java 21 * Confirmed that `mvn clean verify` passes on Linux with Java 24
1 parent 9cbf752 commit e052710

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
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>5.7</version>
7+
<version>5.18</version>
88
<relativePath />
99
</parent>
1010
<groupId>io.jenkins.plugins</groupId>

src/main/java/io/jenkins/plugins/gitlabbranchsource/GitLabSCMNavigator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ private String getProjectName(GitLabApi gitLabApi, int projectNamingStrategy, Pr
342342
String fullPath = project.getPathWithNamespace();
343343
String projectName;
344344
switch (projectNamingStrategy) {
345-
default:
346-
// for legacy reasons default naming strategy is set to Full Project path
345+
default: // for legacy reasons default naming strategy is set to Full Project path
347346
case 1:
348347
projectName = fullPath;
349348
break;

0 commit comments

Comments
 (0)