Guides for SE student projects »

Intellij IDEA: Importing a Gradle project

If the project comes with Gradle support, you will see a build.gradle file in your project root.

IntelliJ IDEA has the Gradle plugin installed by default. If you have disabled it, go to FileSettingsPlugins to re-enable it.
If your project involves GUI programming, similarly ensure the JavaFX plugin has not been disabled.

  1. Open Intellij.
  2. If you are in the welcome screen, Click Open. Otherwise, click File -> Open.
    i. Select the project directory, and click OK.
    ii. If there are any further prompts, accept the defaults but do ensure that the selected version of Gradle JVM matches the JDK being used for the project.
  3. Confirm the project JDK is set to the one you are supposed to use for the project, as explained here.
  4. After the importing of the project is complete (which could take a few minutes), you will see the Gradle Toolbar in the IDEA interface e.g., look for the elephant icon (on Windows, this appears on the right-edge of the IDE window) and click it.
    Gradle icon