Improve project version detection

This commit is contained in:
Vedran Pavic
2018-02-21 07:58:31 +01:00
parent 64f37dcaac
commit 41bf0f73d6

View File

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