HHH-14083 add task release must run after addVersionCommit task

This commit is contained in:
Andrea Boriero 2020-06-22 17:14:47 +01:00
parent f64f0bc91b
commit 85e9ae7800
1 changed files with 10 additions and 7 deletions

View File

@ -299,13 +299,7 @@ task changeLogFile( dependsOn: [releaseChecks] ) {
}
}
rootProject.subprojects.each { Project subProject ->
if ( !this.name.equals( subProject.name ) ) {
if ( subProject.tasks.findByName( 'release' ) ) {
this.tasks.release.dependsOn( subProject.tasks.release )
}
}
}
task addVersionCommit( dependsOn: [changeLogFile] ) {
group = "Release"
@ -321,6 +315,15 @@ task addVersionCommit( dependsOn: [changeLogFile] ) {
}
release.mustRunAfter addVersionCommit
rootProject.subprojects.each { Project subProject ->
if ( !this.name.equals( subProject.name ) ) {
if ( subProject.tasks.findByName( 'release' ) ) {
this.tasks.release.dependsOn( subProject.tasks.release )
subProject.tasks.release.mustRunAfter( this.tasks.addVersionCommit )
}
}
}
task ciRelease( dependsOn: [releaseChecks, addVersionCommit, release] ) {
group = "Release"
description = "Performs a release: the hibernate version is set and the changelog.txt file updated, the changes are pushed to github, then the release is performed, tagged and the hibernate version is set to the development one."