Installation
Gradle runs on all major operating systems and requires only a Java JDK or JRE version 7 or higher to be installed. To check, run Java-version:
$ java-"1.8.0_121"
Step 1. Download the latest Gradle distribution
Download url:https://gradle.org/releases/
Binary packages and full packages (including user Manual, API Javadoc, DSL Reference) are available
Step 2. Unpack the distribution
Create a new directory C:\Gradle with File Explorer.
Open A second File Explorer window and go to the directory where the Gradle distribution is downloaded. Double-click the ZIP archive to expose the content. Drag the content folder gradle-4.1 to your newly created C:\Gradle folder.
Alternatively (in addition) you can unpack the Gradle distribution ZIP to C:\Gradle using an archiver tool of your choice.
Step 3. Configure Your system environment
In File Explorer Right-click on the this PC (or computer) icon, then click Properties-Advanced System Settings- Environmental Variables.
Under System Variables Select Path, then click Edit. Add an entry for C:\Gradle\gradle-4.1\bin. Click OK to save.
Step 4. Verify Your Installation
Open Windows command Prompt and run gradle-v to run Gradle and display the version,
e.g.:
$ gradle-4.1
Note: Execution of commands under different windows
Dos:c:\users\14009\desktop\basic-demo>Gradlew Properties
Gitbash: $./gradlew Properties
Building Java Applications
mkdir java-demo$ cd java---type java-application
Add Apply plugin: ' Idea ' in Build.gradle
Execute Command gradle idea
You can start coding with IntelliJ idea open.
Gradle Getting Started (Windows edition)