Question

I am writing a plugin. I am adding some properties to the config.properties. Is there a naming convention that I should be following?

Was it helpful?

Solution

While there isn't a set standard, it's best to look at some of the high quality plugins that are available for guidance. Typically you will see them use the following:

grails.plugin.nameofthepluginlowercase.configValue

The rational behind using the grails.plugin.nameoftheplugininlowercase is to ensure there are no collisions between plugins with similar configuration keys. (See here for said explanation)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top