Skip to content

GradleBuild is not compatible with composite builds #304

@rupebac

Description

@rupebac

I know the reasons why you used this GradleBuild:

#62

But we had a great surprise when we tried to release our recently new stuff using composite builds. GradleBuild is not supporting them:

gradle/gradle#8246

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions