Skip to content

Commit

Permalink
Merge pull request #73 from ballerina-platform/enable-publishing-to-c…
Browse files Browse the repository at this point in the history
…entral

Fix module version extracting
  • Loading branch information
ThisaruGuruge authored Feb 11, 2021
2 parents eb00b88 + 35cb45b commit 395a73d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ allprojects {
}
}

def moduleVersion = project.version.replace("-SNAPSHOT", "")

subprojects {
apply plugin: 'java'

Expand Down Expand Up @@ -225,7 +227,8 @@ subprojects {
tagTemplate = 'v${version}'
git {
// To release from any branch
requireBranch = null
requireBranch = "release-${moduleVersion}"
pushToRemote = 'origin'
}
}
}

0 comments on commit 395a73d

Please sign in to comment.