IntelliJ IDEA 2016.3 Help

Creating a Gradle Project

You can create a new Gradle project or add a new Gradle module to an existing project.

To create a Gradle project

  1. 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.

  2. On the 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.

    If you need, specify additional libraries and frameworks.

    Click Next.

  3. On the next page of the wizard, specify the following settings:
    • Add as module to - this field appears when you add a new module to the existing project. By default, the field displays the the name of your project. Click /help/img/idea/2016.3/moduleFolder.png to select a different name.
    • GroupId - specify groupId of the new project, which will be added to the build.gradle file. If a parent Gradle project is specified, this coordinate can be inherited from the parent. To do that, select the Inherit check box.
    • ArtifactId - specify artifactId of the new project, which will be added to the build.gradle file.
    • Version - specify version of the new project, which will be added to the build.gradle file. If a parent Gradle project is specified, this coordinate can be inherited from the parent. To do that, select the Inherit check box.

    Click Next.

  4. On the next page of the wizard specify the Gradle settings.

    Click Next.

  5. Specify the name and location settings. For more information, see Project Name and Location or Module Name and Location.

    Click Finish.

See Also

Last modified: 29 November 2016