Skip to content

Commit 83fa1d2

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

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ 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,
4041
// Scala

project/Dependencies.scala

+14
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ object Dependencies {
3535
val collections = "3.2.2" // Address vulnerability
3636
// Thrift (test only)
3737
val collectorPayload = "0.0.0"
38+
val thrift = "0.15.0" // Address vulnerabilities
3839
// Scala
3940
val decline = "2.0.0"
4041
val circe = "0.13.0"
@@ -54,6 +55,7 @@ object Dependencies {
5455
val kinesisConnector = "com.amazonaws" % "amazon-kinesis-connectors" % V.kinesisConnector
5556
val jacksonCbor = "com.fasterxml.jackson.dataformat" % "jackson-dataformat-cbor" % V.jacksonCbor
5657
val jackson = "com.fasterxml.jackson.core" % "jackson-databind" % V.jackson
58+
val thrift = "org.apache.thrift" % "libthrift" % V.thrift
5759
val hadoop = ("org.apache.hadoop" % "hadoop-common" % V.hadoop)
5860
.exclude("org.slf4j", "slf4j-log4j12")
5961
.exclude("commons-beanutils", "commons-beanutils")
@@ -62,6 +64,18 @@ object Dependencies {
6264
.exclude("commons-logging", "commons-logging")
6365
.exclude("org.apache.htrace", "htrace-core")
6466
.exclude("junit", "junit")
67+
.exclude("org.apache.zookeeper", "zookeeper")
68+
.exclude("org.apache.hadoop", "hadoop-auth")
69+
.exclude("org.apache.curator", "curator-client")
70+
.exclude("log4j", "log4j")
71+
.exclude("com.google.code.gson", "gson")
72+
.exclude("org.apache.avro", "avro")
73+
.exclude("org.codehaus.jackson", "jackson-mapper-asl")
74+
.exclude("com.sun.jersey", "jersey-json")
75+
.exclude("org.mortbay.jetty", "jetty-sslengine")
76+
.exclude("org.mortbay.jetty", "jetty-util")
77+
.exclude("org.mortbay.jetty", "jetty")
78+
val collections = "commons-collections" % "commons-collections" % V.collections
6579
val elephantbird = ("com.twitter.elephantbird" % "elephant-bird-core" % V.elephantbird)
6680
.exclude("com.hadoop.gplcompression", "hadoop-lzo")
6781
val hadoopLZO = "com.hadoop.gplcompression" % "hadoop-lzo" % V.hadoopLZO

0 commit comments

Comments
 (0)