Depending on specific subprojects tasks in a lazy way

Found the place that suggested the above usage for addRule: How to run a task for a subset of multiproject-build