summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2021-09-30 15:21:53 +0200
committergjoranv <gv@verizonmedia.com>2021-09-30 15:21:53 +0200
commit2c699bc95e50c22d0716a4ab7154aed8f32d6616 (patch)
tree0f1429099681e03a2ce22c29f070a39f8d369cef
parentfe260fe8a98c1d2d19633e16a6308857c9577878 (diff)
Optimize fat jar size by excluding unused transitive deps.
-rw-r--r--vespa-http-client/pom.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/vespa-http-client/pom.xml b/vespa-http-client/pom.xml
index 9298c2becf6..2007d269ee4 100644
--- a/vespa-http-client/pom.xml
+++ b/vespa-http-client/pom.xml
@@ -63,6 +63,25 @@
<artifactId>vespajlib</artifactId>
<version>${project.version}</version>
<scope>compile</scope>
+ <exclusions>
+ <!-- Optimization: exclude artifacts that are not used by this module -->
+ <exclusion>
+ <groupId>io.airlift</groupId>
+ <artifactId>aircompressor</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>net.java.dev.jna</groupId>
+ <artifactId>jna</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-exec</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.lz4</groupId>
+ <artifactId>lz4-java</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<!-- Needed for Vespa TLS configuration. -->