HHH-14083 add task release must run after addVersionCommit task
This commit is contained in:
parent
34930bf0f0
commit
604b594226
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue