Installing Gradle

What is gradle home environment variable?

Search for: What is gradle home environment variable?

Gradle installation is documented here

For running Gradle, firstly add the environment variable GRADLE_HOME. This should point to the unpacked files from the Gradle website. Next add GRADLE_HOME/bin to your PATH environment variable. Usually, this is sufficient to run Gradle.

Buildship eclipse plugin admin privileges on windows

Search for: Buildship eclipse plugin admin privileges on windows

I am downloading binary only 4.9 version : 70MB


//Unpack first
Put the zip file in c:\gradle
right-click and unpack to: c:\gradle\gradle-4.9

//Set variables
path=%path%;C:\Gradle\gradle-4.9\bin
gradle_home=C:\Gradle\gradle-4.9

notice c:\gradle\gradle-4.9\gradle-4.9 when unpacked. Move the directory one up.

You also need to set JAVA_HOME to at least Java 7


System properties
or
Edit environment variables
Or
Envi

Java_home=c:\jdk1.8
gradle_home=C:\Gradle\gradle-4.9
path=%path%;C:\Gradle\gradle-4.9\bin

//provide version info
gradle -v

//Tell me what tasks are available by default
gradle tasks

//This will prepare a directory for gradle build
//go to a directory
//execute
gradle init

//This will create a number of files
gradle.build
settings.gradle

Documentation on settings.gradle

Search for: Documentation on settings.gradle

Settings is documented here


rootProject.name = 'FirstProject'

Here is where to next: command line options