yudeep
(Yudeep Poudel)
January 20, 2022, 6:17pm
1
How to make war work while using gradle 7.3.3? Working on a project that has a war and want to update the gradle wrapper version
war {
archieveFileName: ‘shopping-cart.war’
}
Getting errors: No signature method: build_798hasdfh.war is applicable for type: (build_798hasdfh_run_closure2) values: [build_798hasdfh$_run_closure2@454646] Possible solution: wait(), wait(long), tap(groovy.lang.closure), run(), run(), any().
I need the deployable war. Any help would be appreciated.
Vampire
(Björn Kautler)
January 20, 2022, 6:31pm
2
You probably want
tasks.war {
archiveFileName = 'shopping-cart.war'
}
yudeep
(Yudeep Poudel)
January 20, 2022, 7:28pm
3
Thank you, tried it but receiving the following error: "Could not find method archiveFileName() for arguments {shopping-cart.war] on task ‘:shopping-cart.war’ of type org.gradle.api.tasks.bunding.War
yudeep
(Yudeep Poudel)
January 24, 2022, 9:22pm
5
Rookie mistake … made the correction and now its working … thank you @Vampire