VersionHelper now correctly strip snapshot info

This commit is contained in:
Cristian Maglie 2016-08-05 17:57:28 +02:00
parent e0b2cd0ffe
commit 048a8a61d6
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ public class VersionHelper {
return null;
}
try {
if (ver.contains("-")) {
// Strip snapshot info
ver = ver.split("-")[0];
}
String[] verParts = ver.split("\\.");
if (verParts.length < 3) {
if (verParts.length == 2) {