Gradle - Eclipse Integration


Advertisements

This chapter explains about the integration of eclipse and Gradle. Follow the below given steps for adding Gradle plugin to eclipse.

Step 1 − Open Eclipse Marketplace

First of all open the eclipse which is installed in your system. Go to help -> click on EclipseMarketplace. Take a look into the following screenshot.

Open Eclipse Marketplace

Step 2 − Install Buildship Plugin

After click on the Eclipse Marketplace there you will find the following screenshot. Here in the left side search bar type buildship. Buildship is a Gradle integration plugin. When you find the buildship on your screen click on install on the right side. Take a look into the following screenshot.

Install Buildship Plugin

After that you will find the following screenshot there you need to confirm the software installation by click on the confirm button. Take a look into the following screenshot.

Confirm

After that you need to click on accept license agreement in the following screen and click finish. Take a look into the following screenshot.

Accept License

It will take some time to install. Take a look at the following screenshot.

Installation Process

After that, it will ask for restarting Eclipse. There you will select Yes.

Step 3 − Verifying Gradle Plugin

While verifying we will create a new project by following given procedure. In the eclipse go to file -> click on new-> click on other projects. There you will find the following screen. There select Gradle project and click next. Take a look into the following screen shot.

Verifying Gradle Plugin

After clicking next button there you will find the following screen. There you will provide the Gradle home directory path of local file system and click on next button. Take a look into the following screenshot.

Gradle Home Directory

Take a look into the following screenshot here you will provide the name for Gradle project. In this tutorial we are using demoproject and click finish button.

Demo Project

Take a look into the following screenshot there we need to confirm the project. For that we have click finish button in the following screen.

Confirm the Project

Step 4 − Verifying Directory Structure

After successful installation of Gradle plugin, please check the demo project directory structure for the default files and folders as shown in the following screenshot.

Verifying Directory Structure
Advertisements