title: Generating WAR using Gradle wrapper in a Grails application
body: <p>Is it possible to generate a WAR using the Gradle wrapper (ie. <code>gradlew</code>) that comes with a Grails application? </p>
  
  <p>As far as I can tell, after listing all the available tasks, it doesn't seem like it's possible. If not, I wonder why it isn't.</p>
  
  <p>Side note, using it to publish to Artifactory, which is cool IMO.</p>
  
  <p><strong>Update #1</strong></p>
  
  <pre><code>me@workstation ~/ghi
  $ ./gradlew help --task assemble
  :help
  Detailed task information for assemble
  
  Path
       :assemble
  
  Type
       Task (org.gradle.api.Task)
  
  Description
       Assembles the outputs of this project.
  
  Group
       build
  
  BUILD SUCCESSFUL
  
  Total time: 6.345 secs
  </code></pre>
  
  <p><strong>Update #2</strong></p>
  
  <p>I tried the following command: <code>gradlew -Dgrails.env=xxx war</code></p>
  
  <p><code>META-INF\grails.build.info</code> shows <code>grails.env=xxx</code>.</p>
  
  <p>Seems like that would work.</p>