Hi,
I am using Gradle Tooling API to run Task A
multiple times in parallel (spawning threads and executing the tasks). Have given different build directory for all the tasks to avoid race conditions.
But still, I can see Gradle deleted output files (testclasses, etc.) considering previous tasks’ output as stale outputs even though the execution is in progress.
Hence, getting ClassNotFoundException
for test classes in the running test. Is this the intended behaviour?
Any way to handle the scenario so that the Gradle don’t consider the other running build’s output as stale output making sure to avoid any race condition while running the Tasks in parallel?