IntelliJ IDEA 2017.2 Help

Creating Grails Application from Existing Code

This feature is supported in the Ultimate edition only.

If you already have a Grails project, you can create a IntelliJ IDEA Grails Application around its source code. IntelliJ IDEA recognizes the structure and creates the Grails project view.

  1. Launch the New Project wizard. If no project is currently opened in IntelliJ IDEA, click Import Project on the Welcome screen. Otherwise, select File | New | Project from Existing Sources from the main menu.
  2. In the dialog that opens, select your Grails project and click OK.
  3. On the next page of the wizard, select Create project from existing sources and click Next.
  4. On the next page of the wizard, specify the name and the location of your Grails project and click Next.
  5. On the next page of the wizard, select the source roots that you want to include in your project and click Next.
  6. On the next page of the wizard, select the libraries that will be included in your project and click Next.
  7. On the next page of the wizard, review the module structure and dependencies that will be added to the project and click Next.
  8. On the next page of the wizard, select the project SDK and click Next.
  9. On the next page of the wizard, IntelliJ IDEA displays frameworks if they were detected. Click Finish.

IntelliJ IDEA opens a Grails project with its dedicated structure. At this point if IntelliJ IDEA detects a Gradle build tool inside your project, the pop-up message suggesting to import the Gradle project will be displayed.

Last modified: 11 October 2017

See Also