title: Grails 2.2.1 does not recognize the "release" plugin is installed from BuildConfig.groovy
body: <p>I need to use the Grails "release" plugin in 2.2.1 and I add it to the plugins in my BuildConfig.groovy below:</p>
  
  <pre><code>    plugins {
          runtime ":hibernate:$grailsVersion"
          runtime ":jquery:1.8.3"
          runtime ":resources:1.1.6"
          build ":tomcat:$grailsVersion"
          runtime ":database-migration:1.3.2", ":cors:1.1.0"
          compile ':cache:1.0.1'
          build ":release:2.2.1"
      }
  </code></pre>
  
  <p>I try to run the maven-deploy:</p>
  
  <pre><code>$ grails prod maven-deploy --repository=releases --verbose --non-interactive
  | Loading Grails 2.2.1
  | Error WARNING: Configurational method [:release:2.2.1] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring..
  | Error WARNING: Configurational method [build] in grails-app/conf/BuildConfig.groovy doesn't exist. Ignoring..
  | Running pre-compiled script
  | Error Script not found: MavenDeploy
  </code></pre>
  
  <p>OR (when changing from build to compile in BuildConfig.groovy):</p>
  
  <pre><code>| Running pre-compiled script
  | Error Script not found: MavenDeploy
  </code></pre>
  
  <p>I try to list the plugins the release plugin is not there:</p>
  
  <pre><code>$ grails list-plugins --installed
  Plug-ins you currently have installed are listed below:
  -------------------------------------------------------------
  cache               1.0.1            --  Cache Plugin
  common-domain       1.2.4            --  Common Domain Plugin
  cors                1.1.0            --  CORS Plugin
  database-migration  1.3.2            --  Grails Database Migration Plugin
  hibernate           2.2.1            --  Hibernate for Grails
  jquery              1.8.3            --  JQuery for Grails
  resources           1.1.6            --  Resources
  tomcat              2.2.1            --  Apache Tomcat plugin for Grails
  webxml              1.4.1            --  WebXmlConfig
  </code></pre>
  
  <p>I got it to work using the deprecated install-plugin target. 
  I have no idea why this is not working and would like to know if anyone can shed some light on it. Thanks</p>