Gradle is still awesome: I have a large, multi-project build with several dozen applications and services. I’ve defined run targets using Gradle’s application plugin. This is great, because it lets developers use “gradle run” from an application’s directory to run just that application with all the correct arguments and system properties.
Some of these applications depend on services provided by others, so I need to be able to run several applications at once. I can open two terminal windows in two different sub-project directories and type “gradle run” in each window to run both applications simultaneously. Sometimes that works; other times, I get this error:
A problem occurred configuring project ':sw:java:apps:foo'.
> Could not open buildscript class cache for build file '/workspace/blah/sw/java/apps/foo/build.gradle' (/home/me/.gradle/caches/1.7-rc-1/scripts/build_onimlior3lcqq5bugng0kgjb4/ProjectScript/buildscript).
> Timeout waiting to lock buildscript class cache for build file '/workspace/blah/sw/java/apps/foo/build.gradle' (/home/me/.gradle/caches/1.7-rc-1/scripts/build_onimlior3lcqq5bugng0kgjb4/ProjectScript/buildscript). It is currently in use by another Gradle instance.
Owner PID: unknown
Our PID: 3209
Owner Operation: unknown
Our operation:
Lock file: /home/me/.gradle/caches/1.7-rc-1/scripts/build_onimlior3lcqq5bugng0kgjb4/ProjectScript/buildscript/cache.properties.lock