I am getting the following error for the following war block in the build.gradle file:
war {
from file("${buildDir}/pad.checkpoint")
archiveBaseName = 'x'
archiveFileName 'x.war'
manifest {
attributes("Implementation-Title": "X",
"Implementation-Version": "${checkpoint_version}") //CHANGED: using checkpoint version, 4/29/2019
}
}
* What went wrong:
A problem occurred evaluating project ':x'.
> 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()
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.
Spring boot version being used: springBootVers = '2.2.6.RELEASE'