banner



How To Install Gradle On Windows

Gradle - Installation


Gradle is a build tool based on coffee. There are some prerequisites that are required to be installed before installing the Gradle frame work.

Prerequisites to install Gradle

JDK and Groovy are the prerequisites for Gradle installation.

Gradle requires JDK version half-dozen or later to be installed in the system. It uses the JDK libraries which are installed, and sets to the JAVA_HOME environmental variable.

Gradle carries its own Groovy library, therefore, we need non install Nifty explicitly. If it is installed, that is ignored by Gradle.

The steps to install Gradle in your organisation are explained below.

Pace 1 − Verify JAVA Installation

Get-go of all, you lot need to have Coffee Software Development Kit (SDK) installed on your system. To verify this, execute Java –version command in any of the platform you are working on.

In Windows

Execute the post-obit command to verify Java installation. I accept installed JDK 1.viii in my system.

C:\> java - version        

Output

The output is as follows −

java version "1.viii.0_66" Coffee(TM) SE Runtime Environment (build 1.viii.0_66-b18) Java HotSpot(TM) 64-Chip Server VM (build 25.66-b18, mixed mode)        

In Linux

Execute the post-obit control to verify Coffee installation.We have installed JDK i.eight in the organization.

$ coffee - version        

Output

java version "1.8.0_66" Java(TM) SE Runtime Environs (build 1.8.0_66-b18) Java HotSpot(TM) 64-Scrap Server VM (build 25.66-b18, mixed way)        

We presume the readers of this tutorial have Java SDK version 1.8.0_66 installed on their organization.

Pace two − Download Gradle Build File

Download the latest version of Gradle from the link available at https://gradle.org/install/. In the reference page, click on the Complete Distribution link. This footstep is common for whatsoever platform. For this you lot will get the consummate distribution file into your Downloads binder.

Step 3 − Fix Environment for Gradle

Setting upwards environs means, we have to extract the distribution file and re-create the library files into proper location. Set upward GRADLE_HOME and PATH environmental variables. This step is platform dependent.

In Windows

Extract the downloaded zilch file named gradle-2.11-all.cipher and copy the distribution files from Downloads\gradle-2.11\ to C:\gradle\ location.

Subsequently that, add the C:\gradle and C:\gradle\bin directories to the GRADLE_HOME and PATH organisation variables.

Follow the given instructions − Right Click On My Computers -> Click On Properties -> Advanced System Settings -> Click On Environmental Variables.

In that location you will notice a dialog box for creating and editing system variables.

Click on new button for creating GRADLE_HOME variable (follow the left side screenshot).

Click on Edit for editing the existing Path system variable (follow the right side screenshot).

Follow the below given screenshots.

Setup Environment for Gradle

In Linux

Extract the downloaded zero file named gradle-2.eleven-all.cypher then yous will find an extracted file named gradle-ii.11.

You can use the following to motion the distribution files from Downloads/gradle-2.11/ to /opt/gradle/ location. Execute this operation from the Downloads directory.

$ sudo mv gradle-2.11 /opt/gradle        

Edit the ~/.bashrc file and paste the following content to it and save it.

consign ORIENT_HOME = /opt/gradle export PATH = $PATH:        

Execute the following control to execute ~/.bashrc file.

$ source ~/.bashrc        

Step four − Verify the Gradle installation

In windows

Y'all can execute the following command in command prompt.

C:\> gradle –v        

Output

Hither you will detect the Gradle version.

------------------------------------------------------------ Gradle ii.11 ------------------------------------------------------------  Build fourth dimension: 2016-02-08 07:59:16 UTC Build number: none Revision: 584db1c7c90bdd1de1d1c4c51271c665bfcba978 Corking: two.four.4  Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.7.0_60 (Oracle Corporation 24.lx-b09) Os: Windows 8.1 6.3 amd64        

In Linux

Y'all can execute the following command in terminal.

$ gradle –five        

Output

Here y'all will find the Gradle version.

------------------------------------------------------------ Gradle 2.11 ------------------------------------------------------------  Build time: 2016-02-08 07:59:16 UTC Build number: none Revision: 584db1c7c90bdd1de1d1c4c51271c665bfcba978  Cracking: 2.iv.iv Pismire: Apache Ant(TM) version 1.9.3 compiled on December 23 2013 JVM: 1.7.0_60 (Oracle Corporation 24.sixty-b09) Bone: Windows eight.1 half dozen.iii amd64        

In Linux

Y'all tin execute the following command in concluding.

$ gradle –five        

Output

You will find the Gradle version.

------------------------------------------------------------ Gradle 2.11 ------------------------------------------------------------ Build time: 2016-02-08 07:59:xvi UTC Build number: none Revision: 584db1c7c90bdd1de1d1c4c51271c665bfcba978 Great: two.4.iv Ant: Apache Emmet(TM) version ane.9.3 compiled on December 23 2013 JVM: 1.seven.0_60 (Oracle Corporation 24.lx-b09) OS: Linux 3.13.0-74-generic amd64        

Source: https://www.tutorialspoint.com/gradle/gradle_installation.htm

Posted by: jarvisuppeathe.blogspot.com

0 Response to "How To Install Gradle On Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel