Execute a Gradle task shortcut with IntelliJ IDEA
By Mon, 30 Nov 2020 12:40:21 GMT-
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:
Now when I type
CONTROL + OPTION + COMMAND + G, I can run the any Gradle task: