Reputation: 1
I used command grails war. The war file created is 75Mb. What might be the reason and how can I create war with small size. The same project folder is 14Mb.
Upvotes: 0
Views: 209
Reputation: 12291
When we create grails project it adds many dependencies to our project which download jar files and add to our project.
There are many unnecessary dependencies are added which you remove as per your requirement.
So Go to build.gradle file in your project
dependencies {
testCompile "org.grails:grails-web-testing-support"
//testCompile "org.grails.plugins:geb"
...
}
Simply you can remove dependency or comment using //
Once removed/commented dependencies, please refresh gradle project
then run command grails clean
now create war file with war
command
Hope it helps you
Upvotes: 1