Project Integration in Grails

I am doing some tutorials and doing some demos in Grails.

Suppose I have several projects executed in Grails and I want to integrate all these projects into one application, how can I do this?

For example, I made a To-Do List and an Online Exam, and now I want to create a new application that will include both of these applications.

thanks

+4
source share
3 answers

Another way to do this is to repack one (or both) of your projects as a plugin . This will allow you to store them in separate base codes if you need to.

The plugin is a regular Grails application (you can run it using the grails run-app), so switching should not be difficult.

+11
source

The BEST way to create reusable modules in Grails is to pack them as Grails plugins. As already mentioned, the Grails plugin is a regular Grails web application (with a standard layout) with additional metadata, so it helps the GrailsPluginManager component to include plugins in other applications.

I highly recommend the book , which very well covers most aspects of the Grails plugin system. It even shows an example of how to wrap a β€œregular” blogging application as a plugin and incorporate it into another Grails application.

+2
source

Copy all the files from one project to another directory structure and merge all the files that are present in both - there should not be too many, because the "configuration agreement" means that you do not have a large number of global configuration files.

A diff / merge tool that handles directory differences is likely to make this a lot easier.

0
source

All Articles