IntelliJ IDEA 12.1.0 Web Help

11.1+

View | Tool Windows | JetGradle

View | Tool Windows | JetGradle

The JetGradle tool window displays Gradle project structure, and all changes made to the underlying build.gradle file, or to the IntelliJ IDEA project structure.

If there is no linked Gradle project, the window is empty.

In this section:

Jetgradle views

Item Description
Project Click this tab to see the Gradle project structure.
Tasks Click this tab to see Gradle tasks. You can view and run the following tasks:
  • Recent tasks - This area contains a list of the last executed tasks and command types under which these tasks were executed.
  • All tasks - This area contains a list of all available tasks.

Toolbar

Item Description
refresh Click this button to refresh project structure after changes have been made to a Gradle script.
open_gradle_project Click this button to open in the editor the root build.gradle file of the linked Gradle project.
help.png Click this button to show this reference page.
Filters Click the filter buttons to show entities of the corresponding type, and hide the other nodes.

Note

In JetGradle tool window, the entities are color-coded. By default:

  • The unchanged entities are shown black.
  • The entities that exist in IntelliJ IDEA structure only, are shown blue.
  • The entities that exist in Gradle project only, are shown green.
  • The entities that contain conflicts (that is existing on both sides, but with different properties), are shown red.
  • The outdated libraries are shown yellow.

Note that as you change Gradle color code, the colors of the filter buttons change accordingly. The default colors are shown below.

gradle_local_settings Click this button to show project structure entities that exist only in Gradle project.
For example, if you import a Gradle project and delete one of the libraries used in this project. In this case that library is considered gradle-local and is colored in green.
gradle_idea_local_settings Click this button to show only the project structure entities that are defined in IntelliJ IDEA project structure.
For example, if you add a new module to your existing project then the locally added module, its content root and its dependencies are colored in blue.
gradle_conflicts Click this button to show the project structure entities that exist in both projects, but have different properties.
12.1+gradle_outdated_lib Click this button to show the outdated libraries.
gradle_all_entities Click this button to show all of the project structure entities.

Context menu

Item Description
Import Choose this command to import a missing entity that is defined in Gradle project only.
Show Conflict Choose this command to view conflicts between the entities that are defined in both projects, but have different properties.
12.1+Remove Choose this command to remove a dependency from the project.
Sync Choose this command to merge Gradle and local changes to resolve the outdated library.

See Also

Language and Framework-Specific Guidelines:

External Links:

Getting Started:

Web Resources: