After doing trial and erroneous work, I found that it is possible to remove some dependencies without breaking them. While almost a month of use, the document management tool works fine. These are the dependencies removed by me:
<dependency> <groupId>com.wordnik</groupId> <artifactId>swagger-jersey2-jaxrs_2.10</artifactId> <version>${swagger-jersey.version}</version> <exclusions> <exclusion> <artifactId>jackson-module-scala_2.10</artifactId> <groupId>com.fasterxml.jackson.module</groupId> </exclusion> <exclusion> <artifactId>scalap</artifactId> <groupId>org.scala-lang</groupId> </exclusion> </exclusions> </dependency>
This removes basically three large jars: scalap, scala-compiler and scala -reflect. This means almost 19 MB of reduced size.
I am not saying that you should not follow the advice of the Swagger developers to not remove the scala dependencies, but so far this worked for me and wanted to share it. I made my comments and closed the issue on Github: https://github.com/wordnik/swagger-core/issues/624
raspacorp
source share