Using Gradle in Eclipse Building applications using Gradle in Eclipse IDE Eclipse Gradle configuration

1. Gradle installation

  1. Download Gradle from the official website of Grandle, address: http://www.gradle.org/downloads

  2. To set environment variables, you need to set the following two environment variables

    2.1 Add GRADLE_HOME to the root directory of the gradle installation directory

      GRADLE_HOME=C:\develop\Gradle\gradle-4.6

    2.2Path variable to add gradle bin directory

      %GRADLE_HOME%\bin

  3. After the above steps are set, open cmd, run gradle -v to see the version information of gradle, and the configuration is complete.

  

 

  4. Then, you need to configure the path of gradle to Eclipse, as shown below,

  

2. Install the gradle plugin buildship in eclipse

  1. The easiest way to install the Eclipse Gradle tool is to use the Marketplace in Eclipse, buildship This tool belongs to the official plugin of eclipse that supports gradle [help>Eclipse Marketplace] Find [buildship] in find

  2. Then click Install and agree to the agreement. After the installation is complete, you need to restart Eclipse.

 

Reference: Building applications with Gradle in the Eclipse IDE

 Newbie build eclipse Java web project with Gradle

  Gradle installation and gradle plugin install in eclipse buildship

  Eclipse Gradle configuration

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324972533&siteId=291194637