Eclipse Integration Gradle

Source: Internet
Author: User

Eclipse Integration Gradle

First, install the Gradle
    1. On Grandle official website download Gradle, address: http://www.gradle.org/downloads
    2. If the prompt cannot find the address, it is estimated that the wall dropped, need to FQ. Http://blog.my-eclipse.cn/host-google.html (FQ)

    1. After downloading, unzip the zip directly and put it in your computer's software installation directory, for example: D:\dsinstall\gradle-2.2.1
    2. The computer/My Computer sets the environment variable and needs to add Gradle_home to the directory of the installation directory that points to Gradle, for example: D:\dsinstall\gradle-2.2.1. You then need to add the bin directory of the Gradle to the PATH environment variable, for example: D:\dsinstall\gradle-2.2.1\bin.
    3. The above steps are set, open cmd, run gradle-v can see Gradle version information, flag configuration is complete.
Second, Eclipse installation Gradle

Click Help>eclipse Marketplace, Search gradle, click Install

After the installation is successful, configure the Gradle parameter. Change the environment variables, gradle the installation directory, gradle the warehouse directory.

Third, Create Gradle Project

1. Create the project according to the Gradle directory format.

Src/main/java

Src/main/resources

Src/test/java

Src/test/resource

2. Create a Build.gradle file in the root directory

3. Right-click the item "Configure->convert to Gradle project..", wait a minute, and you can have this icon like I have this g, because we add the dependency package right? So we also need to right-click the project "Gradle->refresh All ", the jar is loaded.

4. Right-click the project "Gralde>takes>guick>launcher" and enter "build". When the build finished succesful appears, the integration succeeds.

Eclipse Integration Gradle

Related Article

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.