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() {
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
You can’t perform that action at this time.
0 commit comments