Skip to content

Commit fd900c2

Browse files
committed
checkExpectedBranchVersion trim version
1 parent f28c26f commit fd900c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/java/org/springframework/security/CheckExpectedBranchVersionPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void run() throws IOException {
5151
String version = (String) project.getVersion();
5252
String branchVersion = getBranchVersion(project);
5353
if (!branchVersion.matches("^[0-9]+\\.[0-9]+\\.x$")) {
54-
System.out.println("Branch version does not match *.x, ignoring");
54+
System.out.println("Branch version '" + branchVersion + "' does not match *.x, ignoring");
5555
return;
5656
}
5757
if (!versionsMatch(version, branchVersion)) {
@@ -67,7 +67,7 @@ private static String getBranchVersion(Project project) throws IOException {
6767
exec.setErrorOutput(System.err);
6868
exec.setStandardOutput(baos);
6969
});
70-
return baos.toString();
70+
return baos.toString().trim();
7171
}
7272
}
7373

0 commit comments

Comments
 (0)