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 {