title: grails 3 - Update grails config during Plugin "doWithApplicationContext"
body: <p>I've got a plugin that, during startup, reads some properties from the applications Config file, creates some domain objects and then needs to update the configuration with some additional information.  However, it seems that the config object available during <code>doWithApplicationContext</code> is not the actual grailsApplication.config object.</p>
  
  <p>For instance, attempting to do something straightforward in the <code>MyPluginGrailsPlugin.groovy</code> file like:</p>
  
  <pre><code>void doWithApplicationContext() {
    grailsApplication.config.put('test', 'testValue')
  }
  </code></pre>
  
  <p>does not update the config.</p>
  
  <p>If this plugin is incldued in an application, at any point after startup, <code>grailsApplication.config.getProperty('test')</code> will return null.</p>
  
  <p><strong>How does one go about updating the config map during plugin startup?</strong></p>
  
  <p>NOTE: In grails 2, this used to work.</p>