Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Gradle from the command line on Mac bash

People also ask

Where is gradlew on Mac?

gradlew can be found in the project's root folder.

What is gradlew command?

gradlew command. The gradlew command, also known as the Gradle wrapper, is a slightly different beast. It's a script that comes packaged up within a project. Yes, it gets committed into version control so when you clone the project you get the gradlew script automatically.


./gradlew

Your directory with gradlew is not included in the PATH, so you must specify path to the gradlew. . means "current directory".


Also, if you don't have the gradlew file in your current directory:

You can install gradle with homebrew with the following command:

$ brew install gradle

As mentioned in this answer. Then, you are not going to need to include it in your path (homebrew will take care of that) and you can just run (from any directory):

$ gradle test