using the domain objects in one grails project as a dependency in other grails project

111 Views Asked by At

I have created one grails project that contains all the foundational domain objects. I want to create separate grails projects so it helps me to keep the functional boundaries separate , but, I have a need to use these foundational domain objects and services as a base dependency so i can use this layer seamlessly in all of my other grails project. Any thoughts on if this is a right approach and some pointers on how to go about doing it is highy appreciated

1

There are 1 best solutions below

1
On

You can make the one, having domain classes, a plug-in, instead. Then, use that plugin in your actual app.

See the docs, especially the section, Plugins and Multi-Project Builds.