IntelliJ IDEA 13.1.0 Web Help

File | Settings | Gradle

settings

Use this page to configure Gradle project settings.

Item Description
Linked Gradle projects This area contains the list of registered Gradle projects that are linked to your IntelliJ IDEA project.
Project-level settings This area contains settings for your Gradle project. You can select from the following options:
  • Use auto-import - select this check box to resolve all the changes made to the Gradle project automatically every time you refresh your project.
  • Use gradle wrapper (recommended) - select this option to use Gradle wrapper. Using Gradle wrapper lets you get automatic Gradle download for the build. It also lets you build with the precise Gradle version.
  • Use customizable gradle wrapper - select this option to customize your Gradle wrapper. In this case, IntelliJ IDEA will always check if the specified gradle version is used. To update Gradle version, you only need to change the gradle version number as apposed to default gradle wrapper where you would need to change distriburtionUrl.

    Note

    This option is supported for the Gradle version 1.7 or later.

  • Use local gradle distribution - select this option to run local build scripts.
  • Gradle home - in this text field, specify the fully qualified path to your Gradle installation.

    If Gradle location has been defined by the environment variables GRADLE_HOME or PATH, then IntelliJ IDEA deduces this location, and suggests this path as the default value.

    If Gradle location has not been deduced from the environment variables, specify it manually, or click the Browse button, and select the desired directory in the dialog that opens. Note that the value entered in this field takes preference over the environment variables.

Global Gradle settings This area contains options for Gradle global settings. You can select from the following options:
  • Offline work - use this check box to work with Gradle in the offline mode. In this case Gradle will use dependencies from the cache. Gradle will not attempt to access the network to perform dependency resolution. If required dependencies are not present in the dependencies' cache, a build execution will fail.
  • Service directory path - use this field to override the default Gradle home location directory.
  • Gradle VM options - use this field to specify VM options for your Gradle project.

    When specifying the options, follow these rules:

    • Use spaces to separate individual options, for example, -client -ea -Xmx1024m.
    • If an option includes spaces, enclose the spaces or the argument that contains the spaces in double quotes, for example, some" "arg or "some arg".
    • If an option includes double quotes (e.g. as part of the argument), escape the double quotes by means of the backslashes, for example, -Dmy.prop=\"quoted_value\".

See Also

Language and Framework-Specific Guidelines:

Web Resources: