I used gradle build command in Centos 7 terminal and I got output:
FAILURE: Build failed with an exception. * What we
I ran into this exception when trying to build a project that was mounted as read-only filesystem in a VM. The project set its own gradle cache so changing GRADLE_USER_HOME did not work. I had to change the filesystem to be read/write.
GRADLE_USER_HOME