0

New to Grails 3- starting to port.

Have tried placing config values in application.groovy and application.yml within plugin conf dir to no avail - trying to read values from within plugin service fails. Adding values to the main application's application.groovy works.

What is the secret here? Previously I could load specific conf files via config.locations simply by naming them which was nice and simple. I've seen some resolutions that include needing to setup env vars with paths to config files which I'd like to avoid. Then they set up file URIs for dev and classpath URIs for other envs that will be war packaged - don't really want to do any of this.

Do we no longer have the ability to place config within a plugin and have that automatically merged with the applications config?

1 Answers1

4

The plugin may provide config settings in grails-app/conf/plugin.yml.

Jeff Scott Brown
  • 26,804
  • 2
  • 30
  • 47