IntelliJ IDEA 11.1 Web Help

11.0+
To import an external Gradle model to IntelliJ IDEA, follow these steps
  1. Do one of the following:

    Tip

    You can also use the Welcome screen to create a new project or open an existing one.

  2. On the first page of the New Project wizard, choose the option Import project from external model, and click Next.
  3. On the second page of the wizard, choose Gradle from the list of the supported external models, and click Next.
  4. On the Gradle settings page of the wizard, specify the paths to the Gradle project you want to import, and the path to your Gradle installation.

    Note that if you have specified Gradle home as a system environment variable, or if you have defined Gradle home for a template project, this setting will be automatically deduced by IntelliJ IDEA.

    gradle_home_deduced

    In this case, the field Gradle home is not editable. However, you can override the deduced value by pressing the browse button and choosing a different Gradle location.

    Click Next. IntelliJ IDEA builds project information on the base of the existing sources.

  5. In the project structure page of the wizard, change or review settings.

    Note that the project level and module level settings are editable. On the project level, you can change project name, language level, and project compiler output; on the module level - module name and compiler settings (refer to the sections General Settings for Project and Paths Tab for details.

    On the level of the content roots, the fields are not editable. You can review settings for the content roots.

    gradle_import_project

  6. Click Finish. The imported project is created and opened in the specified frame of IntelliJ IDEA.

    Once a Gradle project is imported, IntelliJ IDEA makes it possible to modify external Gradle model and IntelliJ IDEA project, and explore differences between them. Refer to the section Synchronizing Changes in Gradle Project and IntelliJ IDEA Project.

See Also

Language and Framework-Specific Guidelines:

Reference:

Web Resources: