Skip to content

Commit e7201c4

Browse files
author
Steve Riesenberg
committed
Fix copy/paste from main
Issue gh-13500
1 parent 991b398 commit e7201c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildSrc/src/main/java/org/springframework/gradle/sagan/SaganCreateReleaseTask.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public void saganCreateRelease() {
5252
if (this.version.endsWith("-SNAPSHOT")) {
5353
Matcher versionMatcher = VERSION_PATTERN.matcher(this.version);
5454
Assert.isTrue(versionMatcher.matches(), "Version " + this.version + " does not match expected pattern");
55-
var majorVersion = versionMatcher.group(1);
56-
var minorVersion = versionMatcher.group(2);
57-
var majorMinorVersion = "%s.%s-SNAPSHOT".formatted(majorVersion, minorVersion);
55+
String majorVersion = versionMatcher.group(1);
56+
String minorVersion = versionMatcher.group(2);
57+
String majorMinorVersion = String.format("%s.%s-SNAPSHOT", majorVersion, minorVersion);
5858
referenceDocUrl = this.referenceDocUrl.replace("{version}", majorMinorVersion);
5959
}
6060

0 commit comments

Comments
 (0)