Slackbot
04/21/2022, 5:30 PMVampire
04/21/2022, 5:41 PMallprojects { ... } and subprojects { ... } block introduces project coupling and should be avoided where possible.
The simple truth is, that you shouldn't do it.
Whenever you inject configuration from outside, you maybe introduce coupling and for sure make the build logic intransparent.
The most idiomatic way is, that you have a convention plugin that all projects apply or that all other convention plugins apply and apply your plugin there.Mike Cumings
04/21/2022, 5:43 PM. Coupling of the root project to subprojects does not impact configuration on-demand, but using the allprojects and subprojects in any subproject's build.gradle file will have an impact.Mike Cumings
04/21/2022, 5:43 PMVampire
04/21/2022, 5:45 PMMike Cumings
04/21/2022, 5:46 PM