Gradle Tool Window
The Gradle tool window displays Gradle tasks, and all changes made to the underlying build.gradle file, or to the CLion project structure. If there is no linked Gradle project, the window is disabled. You need to reimport your Gradle project to enable the Gradle tool window.
|Click this button to open the menu for configuring the current view and changing the tool window viewing modes.|
The menu items are options that you can turn on or off. An active item contains a check mark on the left side of its name.
The available options in the menu are as follows:
Use this icon or shortcut to hide the tool window (Shift+Escape).
When used in combination with the Alt key, clicking this icon hides all the tool windows attached to the same tool window bar.
This area contains a list of the last executed tasks and command types under which these tasks were executed.
This area contains a list of all available tasks.
This area contains a list of project dependencies.
Click this button to refresh all registered Gradle projects after changes have been made to a Gradle script.
Click this button to detach an external gradle project.
Use this button to execute a Gradle task. When you click this icon, the Run Gradle Task dialog opens. You can enter the name of the task that you want to execute. Note that CLion supports a code completion.
Use these buttons to expand or collapse all the nodes.
Click this button to import a module or a data to your gradle project via Project Data to Import dialog. It might be useful for the multi-module projects.
Click this button to work with Gradle projects in the offline mode. It might be helpful when the network connection is slow or when you need to work offline.
Click this button to configure the settings of the current Gradle project in the Gradle settings dialog box.
Select this option or use a shortcut to open build.gradle file.
Select this option to refresh the project.
Select this option to refresh dependencies for the project
Select this option to detach an external project.
Ignore Gradle project
Select this option to ignore/unignore the selected project.
Select this option to enable the auto-import feature for your project.
Select this option to add, edit or remove an activation phase for your task. It might be useful for working with the Gradle multi-module projects.
Context Menu Commands for Gradle Tasks
Choose this command to run the selected task with the task-specific run/debug configuration.
Choose this command to debug the selected task with the task-specific run/debug configuration.
Choose this command to create run/debug configuration for the selected Gradle task.
Choose this command to activate the configuration for the selected Gradle task. If there is no existing configuration for the selected task, this option is disabled and replaced with the Create option.
Execute before Sync, Execute after Sync
Choose these commands to set the respective flags for the selected task. In this case, Before Sync and After Sync comments appear next to the name of the node.
Execute before Build, Execute after Build
Choose these commands to set the respective flags for the selected task. In this case, Before Build and After Build comments appear next to the name of the node.
Execute before Rebuild, Execute after Rebuild
Choose these commands to set the respective flags for the selected task. In this case, Before Rebuild and After Rebuild comments appear next to the name of the node.
Choose this command to associate the selected phase with a keyboard shortcut. In this case, the comment with the shortcut appears next to the name of the node.