Grails 1.2 creates IntelliJ IDEA projects files for you

  • submit to reddit

Václav is a programming enthusiast who's constantly seeking ways to make development more effective and enjoyable. He's particularly interested in server-side Java technologies, distributed systems, concurrency, agile methodologies, modern programming languages and DSLs.
He works for JetBrains as a senior software developer and a technology evangelist. He is also a board member of the JetBrains Academy. On the side, he's leading the GPars project, an opensource concurrency library, and investigates the domains of neural networks, evolutionary programming and data mining. You can check out his blog or follow him on twitter.
[dzone] Václav is a DZone Zone Leader and has posted 45 posts at DZone. View Full User Profile

As of Grails 1.2-M2 you no longer need to explicitly create new IDEA projects for your grails applications. The grails create-app command will create an appropriate project file with all the required settings for you in the root folder of your newly created grails project.

Point the IntelliJ IDEA Open project dialog to the generated ipr file and you'll get the project open in your favorite IDE.

Once the project is open, press Control + Shift + Alt + S to open the project settings dialog and tell IDEA about your grails installation.

And that's it. Now everything should be setup for you. Press Shift + F10 to see your fresh new app flying in the browser immediatelly or start building your domain, controllers, services and such. Remember to use the Alt + Insert shortcut to save some effort when doing that.

Enjoy Grails development with pleasure!

Article Type: 
How-to

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Harris Goldstone replied on Sun, 2009/08/16 - 8:07am

Wish there was something similar for NetBeans IDE projects so that I can open Grails projects into NetBeans. Oops..... it's not even necessary since NetBeans is smart enough to know that the "grails-app" folder defines a Grails application...

Václav Pech replied on Fri, 2009/08/21 - 8:00am

Thank you for your comment. A very handy feature, indeed. That's the other option you have with IntelliJ IDEA - point it to the grails app or plugin folder when creating a new project and it'll load it.

Patrick Liechty replied on Wed, 2010/01/06 - 2:11pm

I downloaded grails 1.2 and ran grails create-app and it did not create the intellij project files.  Do I need something else?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.