IntelliJ IDEA 2021.3 Help

Run Grails targets

IntelliJ IDEA enables launching targets in the Grails or Griffon applications. When Grails or Griffon application is selected, the respective Run target command appears in the Grails or Griffon nodes of the main Tools menu.

To run a Grails target

  1. Select Grails application module. You can do this in a number of ways:

    • In the Project tool window, select module of the corresponding type.

    • Bring forward the Grails View tool window.

    • Open in the editor the desired file that pertains to a Grails application.

  2. On the Tools menu, choose Grails | Run Grails Command or Griffon | Run Griffon Command:

    groovy_runTarget2.png

    Alternatively, just press Ctrl+Alt+G.

  3. In the dialog that opens, start typing the target name, and press Ctrl+Space to show the list of matching targets:

    Run grails target
  4. Click OK, and view the output messages in the console.

Please note the following:

  • The history drop-down list is available in the RunTarget dialog. Use the arrow keys to browse through the recently executed targets.

  • You can run or debug any target immediately from the Run/Debug configuration, if you enter an arbitrary command in the Command line field of the Run/Debug Configuration dialog.

Last modified: 01 August 2022