We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f28c26f commit fd900c2Copy full SHA for fd900c2
buildSrc/src/main/java/org/springframework/security/CheckExpectedBranchVersionPlugin.java
@@ -51,7 +51,7 @@ public void run() throws IOException {
51
String version = (String) project.getVersion();
52
String branchVersion = getBranchVersion(project);
53
if (!branchVersion.matches("^[0-9]+\\.[0-9]+\\.x$")) {
54
- System.out.println("Branch version does not match *.x, ignoring");
+ System.out.println("Branch version '" + branchVersion + "' does not match *.x, ignoring");
55
return;
56
}
57
if (!versionsMatch(version, branchVersion)) {
@@ -67,7 +67,7 @@ private static String getBranchVersion(Project project) throws IOException {
67
exec.setErrorOutput(System.err);
68
exec.setStandardOutput(baos);
69
});
70
- return baos.toString();
+ return baos.toString().trim();
71
72
73
0 commit comments