Execution failed for task ':compileJava'

Hello,

I am trying to convert a maven project to gradle. I have performed the gradle init step and a build.gradle was generated. I have looked over the dependencies and they all seem to have been picked up. However, when I run gradle clean build it fails with Execution failed for task ‘:compileJava’ and it lists a bunch of symbols that can’t be found. All of them are symbols from the project I’m trying to build. I have confirmed that JAVA_HOME is set correctly and the target source compatibility is consistent with the JDK version that I’m using to build. Any suggestions on what I am doing wrong would greatly be appreciated.