Change default war file name

How can I change the default name for the war file?

Hello @aaxlss
file settings.gradle
rootProject.name = “axelor-erp”

Change that

1 Like

Thanks for your replay.
I already changed that parameter but the war file is still appending the version
e.g. I changed rootProject.name default value to “my-project” and when I will get the war file with the name my-project5.2.4,war

I would like to remove that version form the name.

Thanks.

@aaxlss

Overwrite the Gradle war plugin in build.gradle like this :

war {
	archiveName 'my-project.war'
}

See https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.War.html for more details

1 Like

Thank you!!!
That worked n___n