From 4668466fd7e4f17f7be77631872a306141822ea9 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 22 Jun 2020 10:31:36 +0100 Subject: [PATCH] Add changeLogFile task --- release/release.gradle | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/release/release.gradle b/release/release.gradle index a29d9af974..25fbfbcc75 100644 --- a/release/release.gradle +++ b/release/release.gradle @@ -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 )