Unable to resolve class in Netbeans > Gradle


I am new to Gradle and using the following:

Netbeans: 7.3.1 Gradle: 2.0

In build.gradle file, I get an error (red highlighted) when try to import some classes. I am adding classpath as well as dependencies have already been downloaded in “Dependencies” folder (green highlighted). Please see the attached screen shot. So why I am getting unable to resolve class message for all the imports? The same imports works absolutely fine from .java class within src\main\java or src\main\test