A Java project's Gradle build defines its source folders, dependencies, and tasks. On a Linux desktop, Eclipse IDE uses Buildship to import the Gradle project and make its tasks available from the workspace.

Buildship registers the project from its existing folder and uses the Gradle build to configure the Java build path. The Gradle Wrapper lets Eclipse use the version declared by the project.

Importing can execute build scripts with the permissions of your desktop account before you run a task yourself. Only import a project whose source and Gradle Wrapper you trust. An unexpected wrapper download location is a reason to stop before importing.

Steps to import a Gradle project in Eclipse:

Start with Buildship installed in Eclipse and Project Explorer visible. Eclipse IDE for Enterprise Java and Web Developers 2026-09 includes Buildship 3.1.11. Have one Java Gradle project in a local folder outside the workspace. The project must be new to the workspace and include its Gradle Wrapper and a build task in the build group, as provided by the Gradle Java plugin. The example uses /home/reader/Documents/sample-app. The steps use Buildship's default Gradle wrapper distribution and view settings. The import opens Gradle Tasks, and the build result appears in Gradle Executions and Console.

On first launch, Eclipse may open a sponsor page in your browser, which you can close. If the full-screen Welcome tab opens, close it. If Install Java 27 Support appears, the update is optional. Start at step 1 once the workbench shows Project Explorer.

  1. Open the File menu.
  2. Choose Import….
  3. Expand Gradle if it is collapsed.
  4. Double-click Existing Gradle Project.
  5. Drag the wizard's upper-right corner inward and down if the bottom buttons are off-screen.
  6. Select the existing value with Ctrl+A if Project root directory already contains a path.
  7. Enter the full path to your Gradle build in Project root directory, replacing any selected value.

    The build root is the folder containing build.gradle or build.gradle.kts and the gradle/wrapper directory.

  8. Click Finish.

    The first import may download the project's Gradle version. The wizard closes when synchronization finishes. If Eclipse reports an import error, resolve it before continuing.

  9. Maximize the Eclipse window if the wizard resize restored it to a smaller window.
  10. Click the square Maximize button at the right end of the Gradle Tasks tab bar.
  11. Expand your project's entry in Gradle Tasks.
  12. Expand the build task group.
  13. Double-click build inside that group.
  14. Click the Console tab once Run build in Gradle Executions shows a value under Duration.
  15. Confirm that Console reports BUILD SUCCESSFUL for your project's build task.

    The Console header identifies the project for the current run. If it reports BUILD FAILED, the error above that line describes what needs attention.

Share this guide