firebase/quickstart-java

"./gradlew build run" not working because gradle wrapper is missing in the project

aruld opened this issue · 4 comments

aruld commented

you can run this command to generate a gradle wrapper and add the wrapper to the project
gradle wrapper

@aruld gradlew is provided in the database folder. The instructions assume you are running commands from that folder. It should be working for you if you do that.

https://github.com/firebase/quickstart-java/blob/master/database/gradlew

aruld commented

@samtstern The problem is https://github.com/firebase/quickstart-java/tree/master/database/gradle/wrapper does not have the wrapper: gradle-wrapper.jar. This is referenced in gradlew (CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar). So, it does not run out of the box, you need to add this jar to this folder.

@aruld thanks for catching that! Sorry I closed the issue prematurely. It should be fixed now, was a gitignore issue.

aruld commented

@samtstern sure, np! Thank you for patching that.