I am new to Gradle. I want to use java rest client using gradle configuration. So I created a gradle project and defined dependency in build.gradle as follows.
But on compilation, I am getting the following error.
- What went wrong:
Could not resolve all dependencies for configuration ':compile'.
Cannot resolve external dependency :org.elasticsearch.client:rest because no repositories are defined.
Please help me.