Guides for SE student projects »
Intellij IDEA: Importing a Gradle project
If there is a build.gradle
file in the project root, Intellij treats it as a Gradle project by default.
- IntelliJ IDEA has the Gradle plugin installed by default. If you have disabled it, go to
File
→ Settings
→ Plugins
to re-enable them.
If your project involves GUI programming, similarly ensure the JavaFX plugin has not been disabled.
- Open Intellij (if you are not in the welcome screen, click
File
> Close Project
to close the existing project first)
- Open the project into Intellij as follows:
- Click
Open
.
- Select the project directory, and click
OK
.
- If there are any further prompts, accept the defaults.
- Click
OK
to accept the default settings but do ensure that the selected version of Gradle JVM
matches the JDK being used for the project.
- Wait for the importing process to finish (could take a few minutes).