Eclipse Integration Gradle
First, install the Gradle
- On Grandle official website download Gradle, address: http://www.gradle.org/downloads
- 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)
- After downloading, unzip the zip directly and put it in your computer's software installation directory, for example: D:\dsinstall\gradle-2.2.1
- 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.
- 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