Import a Project

This chapter explains how to import a project in an IDE.

In order to import an existing Gradle project in IntelliJ IDEA, follow the following steps:

  • If you are in the Welcome Screen, click on the Open button. Otherwise click either on File > Open… or on File > New > Project From Existing Sources….

  • Select the root directory of the project and click on the OK button.

Project Import in IntelliJ IDEA

Project Import in IntelliJ IDEA

  • If you are asked to choose a project model, select Gradle.

Fig 1. Project Model Selection when Opening in IntelliJ IDEA Fig 2. Project Model Selection when Importing in IntelliJ IDEA
  • Click on the Create button.

The Gradle project should now be opened in IntelliJ IDEA.