May 25, 2021 Gradle
In addition to supporting the traditional command-line interface, Gradle also provides a graphical user interface (GUI). This is a stand-alone user interface that can be started by adding the --gui parameter.
gradle --gui
Note: This command line window will be locked until the Gradle GUI is closed. If you're on a linux/unix system, you can make it run as a background task through (gradle --gui.)
If you run the Gradle GUI in your Gradle project directory, you should see a task tree.
GUI Task Tree
It is a good idea to run this command from the Gradle project directory so that the settings for the UI can be stored in your project directory. Of course, you can also run it first, and then change the working directory by using the Settings tab in the UI.
In Gradle's user interface (UI), there are four tabs above and an output window below.
The task tree shows the hierarchy of all projects and their tasks. Double-clicking on a task can execute it.
There is also a filter to hide less-used tasks. Y ou can switch whether to filter or not via the Filter button. B y editing filters, you can configure which tasks and items to display. H idden tasks appear in red. Note: Newly created tasks are displayed (not hidden) by default
The context menu for the task tree provides the following options:
The Favorites tab is used to store commands that are frequently executed. T hese commands can be complex commands (as long as they conform to Gradle's syntax), and you can give them a display name. I t is used to create a custom command to display skip tests, documents, examples. You can call it "quick build."
You can sort favorites to your preferences, even export them to disk and import them elsewhere. I f you edit them, select Always show live output, which is only valid if you select Show output when an error occurs. It always forces the output to be displayed.
The command line tab is where a single Gradle command is executed directly. A ll you have to do is enter the commands that you often enter after "Gradle" on the command line. It also provides a place to try first for commands to add to your favorites.
The Settings tab allows you to configure some general settings
GUI Setup