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 « J'aime »

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

2 « J'aime »

Thank you!!!
That worked n___n

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.