문제

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