authorjapps / zerocode-hello-world

Zerocode YAML and JSON based declarative steps hello world rest api testing example - soap, database
https://github.com/authorjapps/zerocode
MIT License
18 stars 40 forks source link

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain #17

Closed ankitshubham97 closed 5 years ago

ankitshubham97 commented 5 years ago

I git cloned the repo:

git clone https://github.com/authorjapps/zerocode-hello-world.git

I cd into zerocode-hello-world:

cd zerocode-hello-world/

I did a clean build:

./gradlew clean build

It threw following error:

Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

On googling, I found this StackOverflow link: https://stackoverflow.com/a/44782145/5657783. I tried the following based on the answer and then it worked:

Ankits-MacBook-Air:zerocode-hello-world-fork ankitshubham$ gradle wrapper

BUILD SUCCESSFUL in 857ms 1 actionable task: 1 executed Ankits-MacBook-Air:zerocode-hello-world-fork ankitshubham$ git reset --hard HEAD is now at bf6f651 Merge pull request #15 from authorjapps/ISS-229 Ankits-MacBook-Air:zerocode-hello-world-fork ankitshubham$ ./gradlew clean build

How to fix this? Or should we put something on this line in the README?

authorjapps commented 5 years ago

@ankitshubham97 , that's great. Thanks for the PR.

We will review n merge this soon.

authorjapps commented 5 years ago

PR has been approved n merged now.

Can you close both issues please? 👍

authorjapps commented 5 years ago

Thanks @ankitshubham97 for this. CI build has passed.

Can you please close the ticket(s)?