From 41bf0f73d6dbcf49e5020281c5fd45b22b6df459 Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Wed, 21 Feb 2018 07:58:31 +0100 Subject: [PATCH] Improve project version detection --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 38aa2ae..bdb0d67 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {