How do I change the name of the war file being built?

war { 
   archiveName = project.property('warName') 
}

https://discuss.gradle.org/t/how-do-i-change-the-name-of-the-war-file-being-built/9223/3