CLion 2019.2 Help

Gradle

Settings / Preferences | Build, Execution, Deployment | Gradle

Use this page to configure the Gradle project settings.

Item

Description

Gradle user home

Use this field to specify the location of stored Gradle caches, downloaded files, and so on.

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

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

Gradle projects

This area contains the list of registered Gradle projects that are linked to your CLion project.

Automatically import this project on changes in build script files

If you select this checkbox, CLion automatically re-imports your project every time you make changes in the build script files. In large projects, selecting this option might slow down the editing of your build script.

When you uncheck this option, you need to manually refresh the project every time you change build script files. In this case, you can control the re-importing of the project.

Gradle

Use Gradle from

Use this list to configure a Gradle version for your project.

You can select one of the following options:

  • 'wrapper' task in Gradle build script: select this option to configure a Gradle wrapper according to the wrapper task configuration. It might be convenient if you prefer to control which Gradle version to use in the project.

    If you used the default Gradle wrapper option and then switched to the Gradle wrapper task configuration, changes you made in the task automatically update during the project import.

  • Specified location: select this option if you want to manually download and use a specific Gradle version. Specify the location of your Gradle installation.

Gradle JVM

Use this field to specify the JVM under which CLion will run Gradle when you import the specified Gradle project and when you execute its tasks. The default is set to your project JDK.

Last modified: 3 October 2019