Documentation page Upgrading your build from Gradle 6.x to the latest states:
Referencing tasks from included builds
Direct references to tasks from included builds in
mustRunAfter
,shouldRunAfter
andfinalizedBy
task methods have been deprecated. Task ordering usingmustRunAfter
andshouldRunAfter
as well as finalizers specified byfinalizedBy
should be used for task ordering within a build. If you happen to have cross-build task ordering defined using above mentioned methods, consider restructuring such builds and decoupling them from one another.
This seems to be a breaking change in making which is affecting us. Can someone please explain why this was necessary and what is the recommended replacement. Cross-build task ordering in a monorepo is simply unavoidable in certain cases.