Fix eager created gradle tasks (#68623)
Brings us back to zero eagerly created tasks. Gradle does not
provide a way to enforcing task avoidance api. I raised that
with the Gradle team, maybe we get something in future
gradle versions that can help us enforcing using the task avoidance
api