We have a couple of projects that shared an inline plugin in Grails 2. I've switched to using the Gradle sub-project (which is nice) but I'm a little unsure of how the configuration is supposed to work.
For example, we had a plugin called "common" (original, I know) that had some common configuration in CommonConfig.groovy. Now it seems like application.groovy is where the config should go, but I think that will be overridden by the application.groovy in my application (or it seems to be).
If I want to have some base configuration in a plugin that can be used by the application, what's the best way to do that in Grails 3?
Also, it's not clear what are the rules if you have both an application.yml and an application.groovy, which one takes precendence? I assume they are sort of merged together (hopefully the groovy one would override the YML file). The docs don't really seem to discuss it.
Thanks,
-Aaron