You can create a new Gradle project or add a new Gradle module to an existing project.
Do one of the following:
If you are going to create a new project:
click Create New Project on the Welcome screen or
select File | New Project.
As a result, the New Project wizard opens.
If you are going to add a module to an existing project:
open the project you want to add a module to, and
select File | New Module.
As a result, the New Module wizard opens.
- If you are going to create a new project: click Create New Project on the Welcome screen or select File | New Project.
first page of the wizard,
in the left-hand pane, select
Gradle In the right-hand part of the page,
specify the JDK that you are going to use. Specify the Gradle settings:
- 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 default 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 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 precedence over the environment variables.
Specify the name and location settings. For more information,
see Project Name and Location or Module Name and Location.