Launching Gradle builds from Eclipse

Viewed 95511

We're looking at converting our Ant build to Gradle.

In regards to integration with Eclipse, we are looking for (conceptually) equivalent functionality for launching builds from the IDE. Eclipse provides a nice Ant view for invoking Ant targets.

There is an Eclipse plugin for launching Gradle builds (http://www.breskeby.com/downloads/gradle/eclipse/update/), but this seems to require users to jump through hoops to invoke different targets (edit the launch configuration, etc.).

How are others using Gradle from inside Eclipse?

12 Answers

I came across this question after installing the newer Buildship plugin which is phasing out Spring Tool Suite mentioned by others here.

Instructions for using task view with Buildship are as follows:

Using the Gradle Tasks view

After successfully importing a Gradle project, the project is shown in the Gradle Tasks view. enter image description here By right clicking on a certain Gradle task in the Gradle Tasks view, you can run the selected Gradle task.

enter image description here

By default the result is displayed in the Gradle Executions view. It is also displayed in the Console view similar to the output you would get if you run the task via the command line.

Source

Related