Execute a Gradle task shortcut with IntelliJ IDEA

Most of my projects are Gradle Builds. For such projects, I use in IntelliJ IDEA. However, I delegate Build and Run and tests to Gradle. You can do that at Settings/Preferences | Build, Execution, Deployment |Build Tools | Gradle.

Thus, running tasks such as test, run, clean or build means executing a Gradle task. Because of that I have a shortcut to execute a Gradle task within IntelliJ IDEA:

Custom shortcut to execute a Gradle task in IntelliJ IDEA

Now when I type CONTROL + OPTION + COMMAND + G, I can run the any Gradle task:

Execute a Gradle task in IntelliJ IDEA

Tags: #gradle #intellijidea #automation
Nov 2020, 30.


My next events:
🗓 Jul 20 09:00 Workshop Security in the Micronaut Framework
🗓 Sep 20 09:00 JCON Online 2022 - Getting Started with the Micronaut Framework
🗓 Sep 23 09:00 JCON Online 2022 - Micronaut® Framework and Microstream Java-native persistence engine