When we run ‘gradlew clean build --parallel’ open leafs in task graph are sometime executing before clean finishes.
We have a task within build which outputs environment property file in build directory and it does not depend on any other task (so its a open leaf in task graph). At times clean runs after this task and hence deleting the generated file.
Is there a way to force clean before anything else run?
P.S. This started happening with 1.5. It used to work well with 1.4.