Create Run/Debug Configuration for Gradle Tasks
This dialog lets you create a run/debug configuration for the selected Gradle task. It appears when you right-click the task in the Gradle tool window and select Create [task-name].
|Name||This field shows the name of your Gradle project and the Gradle task that you have selected in the Gradle tool window for the configuration.|
Select this check box to make the run/debug configuration available to other team members.
If the directory-based project format is used,
the settings for a run/debug configuration are stored in a separate .xml file in the
If the file-based format is used,
the settings are stored in the
This check box is not available when editing the run/debug configuration defaults.
|Single instance only||If this check box is selected, this run/debug configuration cannot be launched more than once.
Every time a new run/debug configuration is launched, IntelliJ IDEA checks the presence of the other instances of the same run/debug configuration, and displays a confirmation dialog box. If you click OK in the confirmation dialog box, the first instance of the runner will be stopped, and the next one will take its place.
This makes sense when the usage of certain resources can cause conflicts, or when launching two run/debug configurations of the same type consumes too much of the CPU and memory resources.
If this check box is not selected, it is possible to launch as many instances of the runner as required. So doing, each runner will start in its own tab of the Run tool window.
|Gradle Project||Use this field to specify the location of your Gradle project. You can either enter it manually or
click the Browse button and point to the
desired location in the dialog that opens.|
You can also click button to select an available Gradle module from the list of registered Gradle modules in your existing IntelliJ IDEA project. The list has a tree structure that might be useful if you have a Gradle multi-module project.
|Tasks||This field shows the selected Gradle task. You can add other tasks to the selected one. Use spaces to separate one task from another.|
|VM Options||Use this field to specify VM options for your Gradle project.
If you need more room to type, click next to the field to access the VM options dialog where the text entry area is larger.
When specifying the options, follow these rules:
|Script Parameters||Use this field as the Gradle command line to specify options for Gradle tasks.|
For the information on the syntax, see Gradle command line options. Please note that some of the Gradle commands options are not supported in IDE. In this case you will receive an error message indicating the problem.
|Before launch||Specify which tasks must be performed before applying the run/debug configuration.
The specified tasks are performed in the order they appear in the list.