title: I am a getting a gradle error for the war closure in build.gradle file
body: <p>I am getting the following error for the following war block in the build.gradle file:</p>
  <pre><code>war {
      from file(&quot;${buildDir}/pad.checkpoint&quot;)
      archiveBaseName = 'x'
      archiveFileName 'x.war'
      manifest {
          attributes(&quot;Implementation-Title&quot;: &quot;X&quot;,
                  &quot;Implementation-Version&quot;: &quot;${checkpoint_version}&quot;) //CHANGED: using checkpoint version, 4/29/2019
      }
  }
  
  * What went wrong:
  A problem occurred evaluating project ':x'.
  &gt; No signature of method: build_bwabkxkz50kzi9n1i5g4tpde.war() is applicable for argument types: (build_bwabkxkz50kzi9n1i5g4tpde$_run_closure7) values: [build_bwabkxkz50kzi9n1i5g4tpde$_run_closure7@459c6649]
    Possible solutions: wait(), wait(long), tap(groovy.lang.Closure), run(), run(), any()
  </code></pre>
  <p>It was working before with the deprecated variables baseName and archiveName. I think it is happening because the war closure hasn't been set for receiving the new upgraded variables.</p>
  <p>Spring boot version being used:  springBootVers = '2.2.6.RELEASE'</p>