Just to ensure the Gradle distribution is working properly, try creating a simple build file, like so:
apply plugin: ‘java’
repositories {
jcenter()
}
dependencies {
compile ‘commons-collections:commons-collections:3.2.1’
}
Then see if you can execute it. You can put it in the same directory of your project so you can use the gradle wrapper, name it whatever you like. Then execute.
./gradlew -b foo.gradle dependencies