Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Grails 3 WAR without version number

In Grails 2 we could define WAR filename like this:

grails.project.war.file = "target/${appName}.war"

How can I override the war filename in Grails 3?

Thanks Jeff.

I have added line like thisin build.gradle:

war {
    archiveName "${war.baseName}.war"
    }
like image 219
sfgroups Avatar asked Nov 10 '15 02:11

sfgroups


1 Answers

In build.gradle you can do something like war.archiveName='jeff.war'. See https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.War.html#org.gradle.api.tasks.bundling.War%3aarchiveName.

like image 156
Jeff Scott Brown Avatar answered Oct 13 '22 10:10

Jeff Scott Brown