Gradle Commands

Gradle Commands

In this article, sharing Gradle Commands which are using frequently to build the project, clean build the project, compile or execute the test cases and skip the test cases execution.

 

Gradle commands

Go to the project location and execute the following command for the respective activity.

Command Description

./gradlew build

build project, runs both the assemble and check task

./gradlew clean

delete the earlier generated project jar file

./gradlew clean build

build project complete from scratch

./gradlew test

Run the tests

./gradlew tasks

to see the list of available tasks for the project

./gradlew proeprties

to see the list of available properties  for the project

 

We would prefer always you can build the project via ./gradlew clean build command

 

 

Leave a Reply