I’m using the excellent class-diagram plugin https://github.com/trygvea/grails-class-diagram, and would like to override the config value classSelection as set here: https://github.com/trygvea/grails-class-diagram/blob/master/grails-app/conf/ClassDiagramConfig.groovy in my apps Config.groovy file.
None of the following seem to work:
grails.plugins.class-diagram.classDiagram.config.defaults.classSelection = "com.mypackage.*"
grails.plugins.class-diagram.config.preferences.defaults.classSelection = "com.mypackage.*"
grails.plugins.class-diagram.classDiagram.config.preferences.defaults.classSelection = "com.mypackage.*"
how do i access the correct namespace in order to override the value?
thanks!
The names of Config properties are arbitrary, they don’t necessarily have to follow any specific pattern or convention like package name.
If you have only a single property to override you can use the “flattened” syntax:
You can also declare Config properties using closure syntax (as in the example Config file) if you want to group several properties together:
Note that the Grails plugin system doesn’t automatically load
*Config.groovyfiles from a plugin into an application’s Config. A plugin developer can set up a plugin to merge a default*Config.groovyfile into the application’s Config, in which case usually the properties in an application’sConfig.groovywill override the Config properties supplied by a plugin.