Skip to content

Commit

Permalink
Make sure version is set to git tag version
Browse files Browse the repository at this point in the history
Signed-off-by: Steven M. Pritko <[email protected]>
  • Loading branch information
Steven M. Pritko committed Mar 3, 2017
1 parent d0c2b81 commit 89fc358
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ if (!project.hasProperty('nexusUploadPwd')) {
}
}


// Set version git version
version gitVersion()
if ( "$System.env.BRANCH_NAME" == null ) {
version = versionDetails().lastTag+"-SNAPSHOT"
}
Expand Down

0 comments on commit 89fc358

Please sign in to comment.