First, we will need to install Gradle on our system.
Download the latest version of Gradle from the official website (https://gradle.org/releases/). Select the binary-only distribution and unpack the downloaded zip file to the directory where you want to install Gradle.
Add the bin directory of the unpacked distribution to your system's PATH environment variable so that you can execute Gradle from any directory. On Windows, you can do this by going to Control Panel > System and Security > System > Advanced system settings > Environment Variables and adding the bin directory to the PATH variable. On Linux or macOS, you can add the following line to your ~/.bashrc or ~/.bash_profile file:
- Verify the installation by opening a new terminal window and typing:
This should print the version of Gradle that you have installed.