-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
current swagger-springmvc v0.8.8 adds unnecessary scala (extra 7MB size) dependency to war/jar #1064
Comments
this way war size drops from 42MB to 35MB |
@aldas Have you excluded Nevertheless compilation succeeds, but there are test failures (a lot of @jdubois The maven build should add |
I think "ApiInfo" has been moved to different package in 0.9.x. I tried excluding various scala things in gradle but eventually changed swagger version as someday I need to upgrade it anyway. As I recall all I needed to get things working was to use |
I think that from swagger-springmvc 0.9.5 (commit springfox/springfox@e426cd1#diff-763c874365a7bc898858eaa1aeee307a ) |
Ah thanks, IDEA didn't pick up the change in my gradle file correctly, so I couldn't quick-fix the changed package. I'll provide a pull request during the weekend for both maven and gradle as it reduces the size of war file ~ 10MB (59mb before, now 49mb). |
Using new version removes scala dependency and reduces .war size by 9-10MB Close #1064
thanks @atomfrede |
gradle.properties has swagger_springmvc_version=0.8.8 this version of swagger has eventually dependcy to "org.scala-lang:scala-library:2.10.0" which is ~7MB. This is unnecessary according to json4s/json4s#108
maybe swagger springmvc version should/could be pumped to 0.9.x series?
The text was updated successfully, but these errors were encountered: