Skip to content

Commit b8e5ed3

Browse files
committed
Exlude transitive dependencies of hadoop (close #234)
1 parent d9374d3 commit b8e5ed3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

build.sbt

+2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ lazy val root = project.in(file("."))
3535
Dependencies.Libraries.apacheCommons,
3636
Dependencies.Libraries.jackson,
3737
Dependencies.Libraries.jacksonCbor,
38+
Dependencies.Libraries.thrift,
3839
Dependencies.Libraries.sentry,
3940
Dependencies.Libraries.collections,
41+
Dependencies.Libraries.jaxbApi,
4042
// Scala
4143
Dependencies.Libraries.decline,
4244
Dependencies.Libraries.circe,

project/Dependencies.scala

+16
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ object Dependencies {
3333
val jacksonCbor = "2.9.10"
3434
val sentry = "1.7.30"
3535
val collections = "3.2.2" // Address vulnerability
36+
val jaxbApi = "2.3.1"
3637
// Thrift (test only)
3738
val collectorPayload = "0.0.0"
39+
val thrift = "0.15.0" // Address vulnerabilities
3840
// Scala
3941
val decline = "2.0.0"
4042
val circe = "0.13.0"
@@ -54,6 +56,7 @@ object Dependencies {
5456
val kinesisConnector = "com.amazonaws" % "amazon-kinesis-connectors" % V.kinesisConnector
5557
val jacksonCbor = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % V.jacksonCbor
5658
val jackson = "com.fasterxml.jackson.core" % "jackson-databind" % V.jackson
59+
val thrift = "org.apache.thrift" % "libthrift" % V.thrift
5760
val hadoop = ("org.apache.hadoop" % "hadoop-common" % V.hadoop)
5861
.exclude("org.slf4j", "slf4j-log4j12")
5962
.exclude("commons-beanutils", "commons-beanutils")
@@ -62,6 +65,19 @@ object Dependencies {
6265
.exclude("commons-logging", "commons-logging")
6366
.exclude("org.apache.htrace", "htrace-core")
6467
.exclude("junit", "junit")
68+
.exclude("org.apache.zookeeper", "zookeeper")
69+
.exclude("org.apache.hadoop", "hadoop-auth")
70+
.exclude("org.apache.curator", "curator-client")
71+
.exclude("log4j", "log4j")
72+
.exclude("com.google.code.gson", "gson")
73+
.exclude("org.apache.avro", "avro")
74+
.exclude("org.codehaus.jackson", "jackson-mapper-asl")
75+
.exclude("com.sun.jersey", "jersey-json")
76+
.exclude("org.mortbay.jetty", "jetty-sslengine")
77+
.exclude("org.mortbay.jetty", "jetty-util")
78+
.exclude("org.mortbay.jetty", "jetty")
79+
val collections = "commons-collections" % "commons-collections" % V.collections
80+
val jaxbApi = "javax.xml.bind" % "jaxb-api" % V.jaxbApi
6581
val elephantbird = ("com.twitter.elephantbird" % "elephant-bird-core" % V.elephantbird)
6682
.exclude("com.hadoop.gplcompression", "hadoop-lzo")
6783
val hadoopLZO = "com.hadoop.gplcompression" % "hadoop-lzo" % V.hadoopLZO

0 commit comments

Comments
 (0)