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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top