Gradle is such garbage. I can't count the number of times our ex-Gradler has said "you're not going to like the answer..."
Everything is action-at-a-distance and implicit. You can't answer basic questions like:
- Why does this task exist?
- Why does this task depend on this other task?
- Why did this file get included or excluded?
- How did I get 4 dependencies on 4 different versions of the same library?
You can't answer this stuff because some random include file in some random place reached into a task that had already been created and modified it. And there's no way to find out where this happened. I don't understand why you would want a build system that has build tasks that are mutable.
And yes, it would be nice if people wouldn't do action-at-a-distance, or would not do weird stuff to tasks after they've been created, but that's not really possible. We've actually gone through the trouble of writing a linter that makes sure that devs aren't doing anything too crazy in their .gradle files. But of course some files have to do crazy stuff, so there's an escape hatch, so everyone just uses that.