I am doing a few tutorials and done some demo applications in Grails.
Suppose I have more than one project made in Grails and I want to integrate all these projects in to a single application, how do I do it?
For eg: I have made a 'To do list' and 'on-line examination' and now I want to create a new application that would incorporate both these applications.
Thanks
Another way to do this would be by re-packaging one (or both) of your projects as a plugin. That would allow you to keep them in separate code bases if you need to.
A plugin IS a regular Grails application (you can run it with grails run-app), so the switch over shouldn't be difficult.
The BEST way to create reusable modules in Grails is to package them as Grails plugins. As it was mentioned already, a Grails plugin IS a regular Grails web application (with a standard layout) with additional meta data, so it helps the GrailsPluginManager component to incorporate plugins into other applications.
I'd highly recommend the book which covers most of the aspects of the Grails plugin system pretty well. It even shows the example of how to wrap the 'regular' blogging app as a plugin and incorporate into another Grails application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With