From 35cb45bf3f7e69014a9f6ff7346737598730ea97 Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Thu, 11 Feb 2021 22:54:50 +0530 Subject: [PATCH] Fix module version extracting --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index e7663ceac..ba0d56091 100644 --- a/build.gradle +++ b/build.gradle @@ -188,6 +188,8 @@ allprojects { } } +def moduleVersion = project.version.replace("-SNAPSHOT", "") + subprojects { apply plugin: 'java' @@ -225,7 +227,8 @@ subprojects { tagTemplate = 'v${version}' git { // To release from any branch - requireBranch = null + requireBranch = "release-${moduleVersion}" + pushToRemote = 'origin' } } }