How to Install Gradle Plugin in Eclipse

In this tutorial, we will learn to import and install gradle plugin for eclipse either using eclipse marketplace or update manager. Gradle Plugin allows to the creation and import Gradle enabled projects into the Eclipse IDE. It also allows us to run Gradle tasks and monitor it execution.

The eclipse project for gradle is known as Buildship. It provides deep integration of Gradle into Eclipse.

Buildship can be used with Eclipse 3.6.x or newer. Older versions of Eclipse might work but have not been tested explicitly. Depending on the version of Gradle that Buildship interacts with, certain features of Buildship may not be available.

1. Install Gradle Plugin via Eclipse Marketplace

This is recommended approach. To install Buildship using the marketplace, open the marketplace window, and search for “buildship“.

Step 1: Open Eclipse Marketplace

Eclipse Marketplace
Eclipse Marketplace

Step 2: Search for “buildship”

Install Gradle Buildship Plugin
Install Gradle Buildship Plugin

Step 2: Select checkbox and click next

Install Gradle - Select Options
Install Gradle – Select Options

Step 4: Accept the terms and conditions

After accepting the terms and conditions, clicking “Finish” will install the gradle plugin into your IDE.

2. Install Gradle Plugin via Update Manager

Though the above approach is very much easy and recommended if you want to use eclipse update manager for this task, then ‘https://projects.eclipse.org/projects/tools.buildship/downloads‘ is the URL to put into the location box as below.

Install Gradle via Eclipse Update Manager
Install Gradle via Eclipse Update Manager

After selecting the above site, you will be presented with directly the third option “Select checkbox and click next” from the marketplace installation steps.

Agree to terms and conditions, and click “Finish” to complete gradle installation into eclipse.

Happy Learning !!

Comments

Subscribe
Notify of
guest
2 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.