Gradle Navigation Plugin For IntelliJ


The Gradle Navigation Plugin for IntelliJ adds additional features to the standard Gradle plugin.  You can now swivel between the source editor, the project view, and the Gradle view.  A custom popup show common destinations and user configured tasks and groups. Commands are added to various context menus in the Project Tree, Gradle Tree, and Editor Window.

Task and Group Popup -> A popup window is also provided with buttons to either go to tasks or groups in the Gradle tree, or run tasks directly.  You can easily customize the content and order of items in the popup.

Goto Gradle -> project, task, or group
Goto Project -> gradle settings or build, source root, or resource root

The navigation popup now includes links to various project and module settings, along with Android resource directories and Maven POM files (if they exist in conventional locations)

This plugin works for both single-project and multi-project builds.

You can configure options under Settings/Appearance/Gradle Navigation.

Features

From The Project Tree View (for the selected file or folder)

  • Go To Gradle Tree View – Project
  • Go To Gradle Tree View –  Any Task Or Group
  • Go To Project Tree View – The Gradle Settings File
  • Go To Project Tree View – The Gradle Build File
  • Go To Project Tree View – Source Root

From The Gradle Tree View

  • Go To Gradle Tree View –  Any Task Or Group
  • Go To Project Tree View – The Gradle Settings File
  • Go To Project Tree View – The Gradle Build File
  • Go To Project Tree View – Source Root

From The Editor (for the current file)

  • Go To Gradle Tree View – Project
  • Go To Gradle Tree View –  Any Task Or Group
  • Go To Project Tree View – The Gradle Settings File
  • Go To Project Tree View – The Gradle Build File
  • Go To Project Tree View – Source Root

From The Select In Menu

  • Go To Gradle Tree View – Project
  • Go To Gradle Tree View –  Any Task Or Group
  • Go To Project Tree View – The Gradle Settings File
  • Go To Project Tree View – The Gradle Build File

Tasks And Group Tool Window

A floating tool window showing tasks and groups applicable to the current Gradle project.  There are buttons to  goto and run for items in the list of tasks and groups.

Changes

Pending Changes

Latest Changes

  • feature: Add goto Maven POM action to menu
  • feature: Add goto Maven POM action to popup
  • feature: Filter irrelevant actions in popup
  • feature: Show balloon if popup invoked and project is not Maven or Gradle project
  • bugfix: Cannot share data context between Swing events
  • feature: Add Android resource destinations to popup (drawable, menu, layout)
  • feature: Remove png background
  • feature: Add ‘Preferences’ action to popup
  • feature: Use context related icons
  • feature: Update font size
  • feature: Update action spacing
  • feature: Show a balloon message if destination is not relevant
  • feature: Use icons for goto actions in popup
  • feature: Rearrange actions in popup
  • feature: Assign a default keyboard shortcut to popup
  • feature: Add ‘Goto Source Root’ in popup
  • feature: Add ‘Goto Resource Root’ in popup
  • bugfix: Initial support for Kotlin (build.gradle.kts files)
  • feature: Add ‘Goto Module Settings’ in popup
  • feature: Move most used menu item to top of context menu
  • bugfix: Respect ‘Keep Open’ setting in popup
  • task: Reword ‘Keep Open’ setting in popup
  • bugfix: Fix ‘datacontext between swing events’ exception
  • task: Update documentation
  • feature: Add debug column to task popup
  • bugfix: Add NPE checks
  • bugfix: Update node lookup logic
  • feature: Change order of buttons in navigation popup
  • feature: Add ‘run or goto run-configuration’ to navigation popup
  • feature: Add ‘goto module settings’ navigation item
  • feature: Add option to keep popup open. Close by default
  • task: Update description
  • feature: Allow spaces in task and group names
  • feature: Added ‘Goto Resource Root’
  • bugfix: Request focus when going to source or resource root
  • Refresh popup after config instead of closing
  • Navigate to plugin configuration from the popup window
  • Add a run/goto task floating window
  • Navigate to module configuration
  • Added ‘Goto Task or Group’ action with popup
  • Added settings for user provided task and group destinations
  • Added a settings page
  • Expand after navigate
  • Open after navigate
  • Custom task and group destinations
  • Moved items to top of lists
  • Added syntax to specify custom navigation items as task or group
  • Do not show tasks or groups that are not in the target gradle project
  • Changed order of items

Coming Soon

  • Nothing Special

Issues

Discovered Android paths are hardcord to /module_root/res and /module_root/src/main/res

We use reflection to access Gradle in places where the Gradle plugin does not expose the functionality we need.