Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89e45b7

Browse files
committed
Added message back and executing an array
1 parent c610ca6 commit 89e45b7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

buildSrc/src/main/groovy/springfox/gradlebuild/version/FileVersionStrategy.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class FileVersionStrategy implements VersioningStrategy, GitTaggingSupport, GitV
5050
}
5151

5252
def commitToRepository(Project project, BuildInfo buildInfo) {
53-
def commitChanges = "git commit -a "
53+
def commitChanges = ["git", "commit", "-am", "Preparing for next version ${buildInfo.nextVersion}"]
5454
if (buildInfo.dryRun) {
5555
project.logger.warn("[RELEASE] [DRYRUN] Will execute command: $commitChanges")
5656
return

buildSrc/src/main/groovy/springfox/gradlebuild/version/GitTaggingSupport.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait GitTaggingSupport {
2121

2222
def createAnnotatedTag(Project project, BuildInfo buildInfo) {
2323
project.logger.lifecycle("[RELEASE] Annotating ${buildInfo.releaseType} release with tag ${buildInfo.releaseTag}")
24-
def tagCommand = "git tag -a ${buildInfo.releaseTag}"
24+
def tagCommand = ["git", "tag", "-a", buildInfo.releaseTag, "-m", "Release of ${buildInfo.releaseTag}"]
2525
if (buildInfo.dryRun) {
2626
project.logger.warn(
2727
"[RELEASE] [DRYRUN] Would have executed -> $tagCommand")

0 commit comments

Comments
 (0)