mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
Merge branch '5.8.x' into 6.0.x
This commit is contained in:
commit
f5538be8d0
@ -52,9 +52,9 @@ public class SaganCreateReleaseTask extends DefaultTask {
|
|||||||
if (this.version.endsWith("-SNAPSHOT")) {
|
if (this.version.endsWith("-SNAPSHOT")) {
|
||||||
Matcher versionMatcher = VERSION_PATTERN.matcher(this.version);
|
Matcher versionMatcher = VERSION_PATTERN.matcher(this.version);
|
||||||
Assert.isTrue(versionMatcher.matches(), "Version " + this.version + " does not match expected pattern");
|
Assert.isTrue(versionMatcher.matches(), "Version " + this.version + " does not match expected pattern");
|
||||||
var majorVersion = versionMatcher.group(1);
|
String majorVersion = versionMatcher.group(1);
|
||||||
var minorVersion = versionMatcher.group(2);
|
String minorVersion = versionMatcher.group(2);
|
||||||
var majorMinorVersion = "%s.%s-SNAPSHOT".formatted(majorVersion, minorVersion);
|
String majorMinorVersion = String.format("%s.%s-SNAPSHOT", majorVersion, minorVersion);
|
||||||
referenceDocUrl = this.referenceDocUrl.replace("{version}", majorMinorVersion);
|
referenceDocUrl = this.referenceDocUrl.replace("{version}", majorMinorVersion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user