Try this link?
Create a new folder called basic-eclipse.
Inside the folder, create the src / main / java folders.
Create a Gradle build file in the basic-eclipse folder with the following contents:
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral ()
}
targetCompatibility = 1.6
dependencies {
compile 'commons-lang:commons-lang:20030203.000129'
testCompile 'junit:junit:4.+'
}
Gradle eclipse
Eclipse " → → Workspace" basic-eclipse.
import-eclipse-project , src/main/java . , Commons-Lang Junit ( Hamcrest, , Junit).