title: Configuring Grails create script
body: <p>Grails 2.4.5 here. Currently I use several Grails plugins with my Grails app, and doing a "full" local build requires me to run several Grails commands in a row:</p>
  
  <pre><code>// 1.
  grails clean
  grails refresh-dependencies
  
  // 2. Codenarc
  grails codenarc
  
  // 3. Run unit tests
  grails test-app -unit
  
  // 4. If all pass, then build with lightweight deployer plugin
  grails lightweight --artifactName=myapp
  </code></pre>
  
  <p>I would like to know if there's a way to (perhaps in <code>BuildConfig</code>) federate all of these separate invocations into a single <code>buildAll</code> command, and fail the build if any one of them throws <code>BuildExceptions</code> along the way (all of them do if there are problems).</p>
  
  <p>Ideally it would be great if I could just do:</p>
  
  <pre><code>grails buildAll
  </code></pre>
  
  <p>And accomplish all of the 4 steps above each time.</p>
  
  <p><strong>Note:</strong> If you're all like "<em>Dude, you shouldn't have to <code>refresh-dependencies</code> each time, brah</em>" then I'm all like "<em>Dude, there's some major bugs in 1+ of the plugins that I'm using, so yes I do, brah</em>".</p>