How to import gradle project into STS 3.7.2

piotrek picture piotrek · Dec 11, 2015 · Viewed 11.6k times · Source

i download fresh STS, do 'import' and... there is nothing related to gradle.

do i have to install some plugins first? or maybe preferred way is to add apply plugin 'eclipse' and run gradle eclipse first? what is the suggested way?

Answer

Martin Lippert picture Martin Lippert · Dec 11, 2015

There are three options to import Gradle projects into STS/Eclipse:

  • install the Gradle Integration for Eclipse via the STS dashboard or the Eclipse marketplace and use that. This fits into the STS picture and integrates with its components.
  • install the Buildship project, this is the "official" Gradle integration for Eclipse from Eclipse and this should be the extension of your choice looking forward.
  • use Gradle to create Eclipse-specific project metadata and import the project as existing Eclipse project.