Tag release version before committing development version change

This commit is contained in:
Marco Belladelli 2024-04-18 12:42:37 +02:00
parent 6cf3316675
commit 6aa573004f
No known key found for this signature in database
GPG Key ID: DBD6E257ABE9EA3D
1 changed files with 4 additions and 4 deletions

View File

@ -322,14 +322,14 @@ def releasePreparePostGitTask = tasks.register( 'gitTasksAfterRelease' ) {
dependsOn changeToDevelopmentVersionTask dependsOn changeToDevelopmentVersionTask
doLast { doLast {
logger.lifecycle( "Performing pre-steps Git commit : `${project.releaseVersion}`" )
executeGitCommand( 'add', '.' )
executeGitCommand( 'commit', '-m', "Post-steps for release : `${project.ormVersion.fullName}`" )
if ( project.createTag ) { if ( project.createTag ) {
logger.lifecycle( "Tagging release : `${project.releaseTag}`..." ) logger.lifecycle( "Tagging release : `${project.releaseTag}`..." )
executeGitCommand( 'tag', '-a', project.releaseTag, '-m', "Release $project.ormVersion.fullName" ) executeGitCommand( 'tag', '-a', project.releaseTag, '-m', "Release $project.ormVersion.fullName" )
} }
logger.lifecycle( "Performing post-steps Git commit : `${project.releaseVersion}`" )
executeGitCommand( 'add', '.' )
executeGitCommand( 'commit', '-m', "Post-steps for release : `${project.ormVersion.fullName}`" )
} }
} }