title: Why is Grails plugin's BootStrap not executing?
body: <p>I created a Grails plugin (<code>grails create-plugin myplugin1</code>) and noticed that there was no <code>myapp1/grails-app/conf/BootStrap.groovy</code> created like you normally get when you create a Grails app.</p>
  
  <p>I created one like so:</p>
  
  <pre><code>class BootStrap {
      def init = {
          println("Hello! The plugin is bootstrapping...")
      }
  
      def destroy = {
      }
  }
  </code></pre>
  
  <p>I then include the plugin with a Grails app (by adding <code>myplugin1</code> as a plugin inside the app's <code>BuildConfig.groovy</code>). When I issue a <code>grails run-app</code>, I don't see the above <code>println</code> ever executing.</p>
  
  <p>Do Grails plugins not use <code>BootStrap.groovy</code>? If so, where should I put "bootstrap" code that needs to be executed when a plugin is loaded? Otherwise, if I was correct to do this above, why might I not be seeing the "<em>Hello! The plugin is bootstrapping...</em>" message print out?</p>