Grails 1.2 creates IntelliJ IDEA projects files for you

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
0
Average: 4.5 (2 votes)

I'm a passionate software developer, interested in particular in server-side technologies, distributed systems, Domain Specific Languages and modern programming languages. Václav is a DZone Zone Leader and has posted 36 posts at DZone.

(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...

vaclav 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.

Comment viewing options

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