This commit is contained in:
Stephane Nicoll
2015-07-09 15:37:18 +02:00
parent 95c5142056
commit 714593e5a4

View File

@@ -66,7 +66,7 @@ class Version implements Comparable<Version> {
def matcher = (text.trim() =~ VERSION_REGEX)
if (!matcher.matches()) {
throw new InvalidVersionException("Could not determine version based on '$text': version format " +
"is Minor.Major.Patch.Qualifier (i.e. 1.0.5.RELEASE")
"is Minor.Major.Patch.Qualifier (i.e. 1.0.5.RELEASE)")
}
Version version = new Version()
version.major = Integer.valueOf(matcher[0][1])