File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
buildSrc/src/main/java/org/springframework/gradle/sagan Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,9 @@ public void saganCreateRelease() {
52
52
if (this .version .endsWith ("-SNAPSHOT" )) {
53
53
Matcher versionMatcher = VERSION_PATTERN .matcher (this .version );
54
54
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 );
58
58
referenceDocUrl = this .referenceDocUrl .replace ("{version}" , majorMinorVersion );
59
59
}
60
60
You can’t perform that action at this time.
0 commit comments