I’m migrating an old configuration to both 6 → 7.5 version and from Groovy to Kotlin DSL.
All goes well, but one line of code: specifying the name of the war file.
In the old code it was straightforward:
war {
archiveFileName = 'callisto-backend.war'
}
I know, that the file name falls into smaller blocks (baseName
for example), so now I should set the baseName
instead (without the extension. However, the new WarPluginConvension
is no longer supports archive name, and in the task configuration, the archive name is already read-only.
How to set up the WAR name? (Also, as I see that the WarPluginConvension
is deprecated, how to do it properly?)
Thanks!