-
Notifications
You must be signed in to change notification settings - Fork 219
Open
Labels
Description
I know the reasons why you used this GradleBuild:
But we had a great surprise when we tried to release our recently new stuff using composite builds. GradleBuild is not supporting them:
This is a huge limitation. Composite Builds are receiving everytime more attention.
We have managed to workaround it by splitting it in 3 phases and calling it from different build cycles from the pipeline:
phase 1:
task releaseSym_1 {
dependsOn "createScmAdapter"
dependsOn "initScmAdapter"
dependsOn "checkCommitNeeded"
dependsOn "checkUpdateNeeded"
dependsOn "checkoutMergeToReleaseBranch"
dependsOn "unSnapshotVersion"
dependsOn "confirmReleaseVersion"
dependsOn "checkSnapshotDependencies"
}
phase 2:
then we call our build stuff
phase 3:
task releaseSym_2 {
dependsOn "createScmAdapter"
dependsOn "initScmAdapter"
dependsOn "preTagCommit"
dependsOn "createReleaseTag"
dependsOn "checkoutMergeFromReleaseBranch"
dependsOn "updateVersion"
dependsOn "commitNewVersion"
}
I also have to rework the "mustRunAfter" to guarantee the order.
In the end it is kind of working, but it is not nice at all. Would you be willing to accept Pull request and work on it together?
Vampire, LiewJunTung, nstdio, eggman87 and pm-nchain