Shishir Karki
Shishir Karki

Reputation: 1

Grails 3.2.11 war file is more than 70Mb

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

Answers (1)

Rahul Mahadik
Rahul Mahadik

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 //

enter image description here

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

Related Questions