grails-gradle-plugin-archived icon indicating copy to clipboard operation
grails-gradle-plugin-archived copied to clipboard

grails-war command produces war filename as null

Open bioform opened this issue 10 years ago • 2 comments

Plugin version 2.1.0 has an issue in war filename resolution

| Done creating WAR null Plugin version 2.0.1 creates a war file successfully for grails-war command

| Done creating WAR build/distributions/gradle-test-1.0-SNAPSHOT.war

I don't know the reason why #103 was closed

bioform avatar Jun 27 '14 11:06 bioform

I was open that issue initially. Then realized plugin 2.1.0 version comes with predefined war gradle task. so if you execute just gradle war command, it works fine. Also version 2.1.0 implicitly puts prod as on environment for war command.

For reference 2.1.0 change log

jeevatkm avatar Jun 27 '14 17:06 jeevatkm

Correct gradle war is the proper command to us. If you want to specify other arguments/env/etc you would use the gradle grails-war task and you would need to provide the output file for the war:

$ gradle grails-war -PgrailsArgs=root.war

johnrengelman avatar Jun 27 '14 19:06 johnrengelman