HHH-14083 Add changeLogFile task

This commit is contained in:
Andrea Boriero 2020-06-22 10:31:36 +01:00
parent 0a0ad26d35
commit c62674c28d
1 changed files with 12 additions and 5 deletions

View File

@ -289,16 +289,23 @@ artifacts {
task release( dependsOn: [releaseChecks, uploadDocumentation, uploadBundlesSourceForge] )
task addVersionCommit( dependsOn: [releaseChecks] ) {
task changeLogFile( dependsOn: [releaseChecks] ) {
group = "Release"
description = "Updates the changelog.txt file, adds a commit for the released version and push the changes to github"
description = "Updates the changelog.txt file"
doFirst {
logger.lifecycle( "Appending version '${project.releaseVersion}' to changelog..." )
ChangeLogFile.update( ormVersion.fullName );
}
}
task addVersionCommit( dependsOn: [changeLogFile] ) {
group = "Release"
description = "Adds a commit for the released version and push the changes to github"
doFirst{
logger.lifecycle( "Updating version to '${project.releaseVersion}'..." )
project.ormVersionFile.text = "hibernateVersion=${project.releaseVersion}"
logger.lifecycle( "Appending version '${project.releaseVersion}' to changelog..." )
ChangeLogFile.update( ormVersion.fullName );
logger.lifecycle( "Adding commit to update version to '${project.releaseVersion}'..." )
executeGitCommand( 'add', '.' )
executeGitCommand( 'commit', '-m', project.ormVersion.fullName )