Pregunta

I'm developing a Grails plugin. Should its plugin.xml be kept in version control. Why or why not?

Because these are just plugin descriptors, I'm not sure if they should always be maintained alongside the rest of the codebase. However perhaps Grails uses them for all sorts of "under the hood" type configurations, in which case they must always be present/consistent with the rest of the app codebase.

¿Fue útil?

Solución

When in doubt, turn to some of the well maintained plugins out there. I usually look at the Spring Security Plugin (I have a fondness for the plugin and Spring Security in general). As you can see from the GitHub for it the plugin.xml is not present. Therefore it's best to follow the same practice and remove it.

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