title: Gradle war manifest version number wrong for release build
body: <p>I have a gradle project that builds a war file, and includes a manifest:</p>
  
  <pre><code>war {
      archiveName 'archive.war'
      manifest {
          attributes("Implementation-Title": project.name, "Implementation-Version": version, "Implementation-Timestamp": new Date())
      }
  }
  </code></pre>
  
  <p>This is fine, but if I run a release build (using the gradle-release plugin <a href="https://github.com/townsfolk/gradle-release" rel="noreferrer">https://github.com/townsfolk/gradle-release</a>), which updates the project version, then the war file is created with the old version number rather than the new one.</p>
  
  <p>I may be wrong, but I suspect this is happening because the manifest code is running during the Configuration phase rather than the Execution phase. What is the best way to fix this?</p>