* What went wrong: Task 'run' not found in root project

While am trying to build the build.gradle file from eclipse project, build got failed and throwing this exception.
FAILURE: Build failed with an exception.

  • What went wrong:
    Task ‘run’ not found in root project ‘Gradlesetup’.

  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s

Am working in testNG framework for mobile automation. Kindly let me know if am missing anything. I have set environment variables everything ad executed ./gradlew from my terminal on mac. At that time build got successful.

Task :help

Welcome to Gradle 4.5.1.

To run a build, run gradlew …

To see a list of available tasks, run gradlew tasks

To see a list of command-line options, run gradlew --help

To see more detail about a task, run gradlew help --task

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
If am executing from eclipse then build get failed.