Steps to Install Gradle

Introduction

Gradle is a Groovy-based DSL (versus the traditional XML-based) build automation tool. It makes use of Directed Acyclic Graph (DAG) to determine the order in which tasks are to be run.

For a detailed understanding, please read the wiki entry.

Steps to Install

1) Java 1.5 or above should be installed. Please verify this using the java -version command. If Java is installed, you should see the version; else java is unidentified command message will appear

2) Download the latest binaries from the gradle website.

Image

 

3) Unzip the gradle-<version>-bin.zip contents to your favorite folder – say – /User/gradle

4) For Mac, modify the PATH variable in .profile file to include gradle.

export PATH=/User/gradle/bin:$PATH

For Windows, modify the PATH variable in the Environment variables to include gradle.

(NOTE: If .profile does not exist, please create one)

5) On the Terminal (or command prompt), type gradle -version

If everything went well, the gradle version should appear.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s