Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Jan 9, 2019

This commit makes the assemble tasks in the bwc projects noops by
setting the dependsOn directly. While we can not remove things from
dependsOn, we can still completely override the dependencies.

closes #33581

This commit makes the assemble tasks in the bwc projects noops by
setting the dependsOn directly. While we can not remove things from
dependsOn, we can still completely override the dependencies.

closes elastic#33581
@rjernst rjernst requested a review from alpar-t January 9, 2019 01:05
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

}
}
// make sure no dependencies were added to assemble; we want it to be a no-op
assemble.dependsOn = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work when the bwc version are actually needed ?
I was under the impression that builtBy actually work by adding dependencies which we could be removing here. Maybe it adds them to build also and that's sufficient ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will (I tested it, and the passing CI shows this works too since it runs eg qa/full-cluster-restart which builds bwc). The dependent project triggers the builtBy task, not assemble.

@rjernst rjernst merged commit 722b850 into elastic:master Jan 9, 2019
@rjernst rjernst deleted the bwc_no_assemble branch January 9, 2019 18:57
rjernst added a commit that referenced this pull request Jan 9, 2019
This commit makes the assemble tasks in the bwc projects noops by
setting the dependsOn directly. While we can not remove things from
dependsOn, we can still completely override the dependencies.

closes #33581
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Delivery/Build Build or test infrastructure >refactoring Team:Delivery Meta label for Delivery team v6.7.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gradle assemble task builds BWC versions too

5 participants