Improve release version detection

This commit is contained in:
Vedran Pavic
2018-02-20 16:06:55 +01:00
parent 5295c385d8
commit def816f083

View File

@@ -76,7 +76,7 @@ task deployArtifacts {
description = 'Deploys the artifacts to either Artifactory or Maven Central'
}
if (version.endsWith('-RELEASE')) {
if (version.endsWith('-RELEASE') || version.matches(/^.*?-SR\d+$/)) {
deployArtifacts.dependsOn uploadArchives
}
else {