Milestone 5 is failing consistently for me with:
[exec] FAILURE: Build failed with an exception.
[exec] * What went wrong:
[exec] Could not open cache directory C:\path_to_project.gradle\1.0-milestone-5\taskArtifacts.
[exec] Cause: Timeout waiting to lock cache directory C:\path_to_project.gradle\1.0-milestone-5\taskArtifacts. It is currently in use by another Gradle instance.
[exec] Owner PID: 10308
[exec] Our PID: 6068
[exec] Owner Operation:
[exec] Our operation:
[exec] Lock file: C:\path_to_project.gradle\1.0-milestone-5\taskArtifacts\cache.properties.lock
This worked before with milestone-3 and milestone-4.
There is only one build happening at a time, though Gradle calls out to other tools that will call back in to Gradle. E.g. Gradle launches Visual Studio, the VS project has post-build step will execute a gradle task to finish off part of the build. It’s done that way so that final part of the build is done even when the project is built from within the VS IDE.
What’s the solution?