Jump-start Griffon development with IntelliJ IDEA
Leveraging the similarities between Grails and Griffon the IntelliJ IDEA team has recently updated Maia, the EAP-accesible preview of the next major IntelliJ IDEA version, with support for Griffon. You can now manage the whole lifecycle of a Griffon application development inside IDEA.
When creating a new project, select the appropriate type of application and IDEA will create the application or plugin for you.
For an existing Griffon application, use the Import Griffon application from existing sources option on the New Project screen to get a project created.
Once your project is loaded, you get a Griffon-specific project view on the left-hand side to see your models, views and controllers nicely organized.
Feel free to make changes to the application directly from a command-line, add libraries or plugins. IDEA will pick up your changes.
One useful tip: to avoid switching the to command-line window every now-and-then, use the Control + Alt + G keyboard shortcut, which will bring up a dialog to type your griffon command and run it for you.
A run configuration for Griffon is also available, so pressing Shift + F10 will compile and run your application.
I wouldn't get far in any serious application without a sound set of tests sitting in the unit and integration test folders. IDEA can run them for you and give you an integrated test report.
Now that's how the Grifon support in IntelliJ IDEA looks like currently. Do you like it? Miss a feature? Have questions? Please, let us know.
- Login or register to post comments
- 2332 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)










Comments
kellyrob replied on Wed, 2009/08/26 - 2:28pm
Great job on this new functionality guys!
I've been playing with it for a bit now, and I did have a question about how plugin dependencies are added to the plugin iml file. The first plugin I added seemed to show up there wihtout problems, but others didn't pickup; is it a manual process?
vaclav replied on Thu, 2009/08/27 - 5:59am
That sounds like a bug to me. However, adding multiple plugins works just fine for me with Maia build 10666. The iml file just like the lib dependencies get updated after adding each plugin.
I'd suggest trying the latest build or reporting at http://www.jetbrains.net/jira/browse/IDEA
newbalance3721 replied on Wed, 2009/09/23 - 2:53am
kellyjason replied on Wed, 2009/10/21 - 10:57am