IntelliJ IDEA 13.0.0 Web Help

Gradle integration shows the structure of the IntelliJ IDEA project vs Gradle project. When a project is created by importing from Gradle model, this link is established automatically.

It is also possible to link a Gradle project to an existing IntelliJ IDEA project. This is done in the Gradle tool window.

To link a Gradle project to IntelliJ IDEA project
  1. Open Gradle tool window. If a IntelliJ IDEA project is not linked to a Gradle project, the Gradle tool window is empty.
  2. Click Add link.
  3. In the file choose dialog box that opens, select the desired build.gradle file, and click OK. Now as there is a linked Gradle project, the Gradle tool window shows the toolbar and tree view of Gradle entities.
To open a linked Gradle project
  1. In the Gradle tool window, right-click on the linked project./>
  2. From the context menu select icon_gradle.

    The root build.gradle file opens in the editor.

To detach a linked Gradle project
  1. In the Gradle tool window, right-click on the linked project./>
  2. From the context menu, select delete.

    The Gradle project is detached from the IntelliJ IDEA project and is not synchronized any more.

To refresh a linked Gradle project
  1. In the Gradle tool window, right-click on the linked project./>
  2. From the context menu, select refresh.

    The IntelliJ IDEA synchronizes all linked projects.

See Also

Reference:

Getting Started:

Web Resources: