Gradle Getting Started (Windows edition)

Source: Internet
Author: User
Tags unpack

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.