When I build my war file I would like to give it a name different from my rootProject.name
as defined in settings.gradle
Is there a setting in build.gradle
that allows me to do that ?
You can configure the bootWar task of the Spring Boot Gradle Plugin by adding the following to the build.gradle
file:
bootWar {
archiveFileName = 'somename.war'
}