Building a project with Gradle
If your project uses the Gradle build system,
cd into the directory containing the
build.gradle file for the module you wish to build.
For a single-module project, this is typically located at the root of your repository. For a multi-module project, this may be within a sub-directory.
To compile the project, if a
./gradlew.bat on Windows) file is present, run the
./gradlew build command, otherwise run
It is generally preferable to execute Gradle commands using
./gradlew.bat on Windows) rather than
gradle if these Gradle Wrapper scripts are present in your project.
In either case, if successful, you should see a
BUILD SUCCESS message towards the end of the output from Gradle.