ZenHarbinger / grails-jasypt

Grails Jasypt Plugin
Apache License 2.0
21 stars 3 forks source link

JAR size #8

Closed immutability closed 7 years ago

immutability commented 7 years ago

For some reason, when our Grails 3.1.x app is packaged into the production WAR, the included jasypt-encryption-2.0.1.jar is 50+ MB. It looks like this jar file has all the dependencies of a typical Grails app, so there might be an issue with packaging of the plugin?

I've just noticed this after migrating the Grails 2.5.x app to Grails 3 that the WAR file grew a lot, and most of the growth can be accounted to jasypt-encryption-2.0.1.jar. Previously, in the Grails 2.5.x app using version 1.3.1 of the jasypt plugin, only a tiny jasypt 1.9.2 jar was being included.

Dependency from build.gradle: compile 'org.grails.plugins:jasypt-encryption:2.0.1'

Is there a way to work around this and not have the big jar file included? Or could there be something wrong in our app configuration? Thanks!

dtanner commented 7 years ago

Oooh - yeah - it's kinda fat. Looks like it's literally including its dependencies in a lib folder. I'll fix that. It was my first time building a grails 3 plugin for bintray.

dtanner commented 7 years ago

Should be fixed in 2.0.2, and available now in jcenter. Please give it a try and let me know. The issue was that my publishing process was to call build, but that actually builds a far jar by default now. I needed to just call jar.

immutability commented 7 years ago

Thank you for such a quick response! All is well now with 2.0.2.