I used gradle build command in Centos 7 terminal and I got output:
FAILURE: Build failed with an exception. * What we
This can happen if you run Gradle commands from separate terminals at the same time - I assume Gradle somehow locks ~/.gradle when it is running to prevent any problems.