I used gradle build command in Centos 7 terminal and I got output:
FAILURE: Build failed with an exception. * What we
In my case I had bad credentials to private Maven repository. JIdea does not show the inner exception but running gradle build reveals the problem immediately.
JIdea
gradle build