I have a build.gradle file that contains the following:
artifacts {
warArchives file: file("${projectDir}/build/libs/${rootProject.name}-${version}.war")
}
I tried to change the line in the build.gradle file to:
warArchives file: file("${projectDir}/build/libs/myname.war")
but the build process still produces a war file by the name of ${rootProject.name}-${version}.war
I’m not sure how to override. I’m using a build.gradle file that was produced some time ago and I’m using gradle 2.3. I also read and tried passing a command line parameter:
-Pwar.archiveName=myname.war
But this do not work. How can I override?