Markus Pscheidt
Markus Pscheidt

Reputation: 7331

How to use Buildship with existing Gradle projects

I've got several projects in my Eclipse workspace that use Gradle as their build system. Up to now, I'm running the Gradle commands from the command line.

I've installed Buildship in order to run Gradle tasks more conveniently from the "Gradle Tasks" view. But Buildship doesn't recognize the projects in my workspace as Gradle projects.

How to use Buildship with existing Gradle projects in the Eclipse workspace?

Upvotes: 0

Views: 980

Answers (1)

Paul Adamson
Paul Adamson

Reputation: 2021

The only way at the moment to make buildship pick up a project is to use the import wizard.

  • delete your project from eclipse (doesn't remove your files)
  • File -> import -> gradle -> gradle project

follow the wizard and your project should now show up as a gradle project. If you find you still don't have any dependencies in eclipse then it is probably picking up an existing non-buildship .project file, In which case the following post should help:

Upvotes: 2

Related Questions