Pregunta

Similar to this question: Share config between two grails apps that share a common plugin

But regarding resources.groovy instead of Config.groovy.

Is there some way to have a resources.groovy in a plugin that is then depended on from multiple apps so they have those resources available and autowired?

¿Fue útil?

Solución

I'm not sure of a convenient way to do this, but since the purpose of resources.groovy is to configure Spring beans you could create a plugin and configure the beans from the plugin's doWithSpring closure in its plugin descriptor. This would additionally benefit from versioning, dependency management, etc.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top