Show more Gradle tasks in build menu?

Having the Build task as a hotkey-able GUI menu item in IntelliJ is a huge timesaver! Is there a way to get IntelliJ to populate the menu with the other tasks available to my gradle project (e.g., classes, test, jar, assemble, check, shadowJar, jacoco, cucumber, ...)?

1 comment
Comment actions Permalink

You can create Run/Debug configurations for the task you need:

http://i.imgur.com/1r2kVUL.png

Then execute any of them via quick menu (Run | Run... | Alt+Shift+F10).

Another option is to create a Quick List with Gradle tasks:
https://www.jetbrains.com/idea/help/configuring-quick-lists.html

http://i.imgur.com/uxw4kn5.png

Assign a shorcut for your quick list:

http://i.imgur.com/TPmYGn9.png

Now you have a nice pop-up of tasks invoked by the shortcut:

http://i.imgur.com/fuwQWnv.png

This popup has 10 hot items under numbers, press any number to invoke. Start typing the task name to narrow down the list and execute other tasks.

0

Please sign in to leave a comment.