Executing Gradle tasks

In the Gradle tool window, double-click on your linked Gradle project to expand the branch with the Gradle tasks available. Double-clicking on the task will execute it. You can also click on the task using the right-mouse button and select Run or Debug from the context menu or use the Ctrl + Shift + F10 (PC) or control + Shift + R (Mac) keyboard shortcut; the screen will look as shown here:

Executing Gradle tasks

As with Maven goals, a specific Gradle task can be used to create a permanent run/debug configuration. Just pick Create… from the context menu to open the Create Run/Debug Configuration dialog box.

If you run or debug the Gradle task, it ...

Get IntelliJ IDEA Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.