tomcatgrailsgrails-2.2

generated war file is 20mb without any plugins in grails 2.2?


I am creating test apps. I need to upload them to remote server so the generated war size is important. The test apps mostly donot use plugins. Even after removing all default plugins the generated war is 20 mb. Is there a way to reduce the war file further? I am using grails 2.2. I am guessing there are many things in the war which are not needed. I appreciate any help. Thanks!


Solution

  • Even after removing all default plugins the generated war is 20 mb. Is there a way to reduce the war file further? I am using grails 2.2.

    It is impossible to say if there is more in the .war file that could be removed or not without knowing what your application is doing and which libraries are actually being used. Look at the .jar files that are in your .war file and if there are ones that you don't need they can be excluded. See https://grails.github.io/grails2-doc/2.2.x/guide/conf.html#ivy for info on excluding transitive dependencies.