Skip to content

Commit

Permalink
[hdfs] Reduce hadoop extension dependencies (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu authored Feb 8, 2023
1 parent e367f1f commit a0c6d0c
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions extensions/hadoop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,27 @@ group "ai.djl.hadoop"

dependencies {
api project(":api")
api ("org.apache.hadoop:hadoop-client:${hadoop_version}") {
exclude group: "log4j", module: "log4j"
exclude group: "org.slf4j", module: "slf4j-log4j12"
api("org.apache.hadoop:hadoop-client:${hadoop_version}") {
exclude group: "ch.qos.reload4j", module: "reload4j"
exclude group: "org.slf4j", module: "slf4j-reload4j"
exclude group: "org.apache.hadoop", module: "hadoop-yarn-api"
exclude group: "org.apache.hadoop", module: "hadoop-yarn-client"
exclude group: "org.apache.hadoop", module: "hadoop-mapreduce-client-core"
exclude group: "org.apache.hadoop", module: "hadoop-mapreduce-client-jobclient"
exclude group: "org.apache.avro", module: "avro"
exclude group: "org.eclipse.jetty", module: "jetty-servlet"
exclude group: "org.eclipse.jetty", module: "jetty-webapp"
exclude group: "javax.servlet.jsp", module: "jsp-api"
exclude group: "com.sun.jersey", module: "jetty-servlet"
exclude group: "com.sun.jersey", module: "jersey-servlet"
}

testImplementation project(":engines:mxnet:mxnet-engine")
// manually upgrade jackson to latest version for CVEs
api "com.fasterxml.jackson.core:jackson-databind:2.12.7.1"

testImplementation "org.apache.hadoop:hadoop-minicluster:${hadoop_version}"
testImplementation "org.mockito:mockito-core:${mockito_version}"
testImplementation(project(":testing"))
testImplementation project(":testing")

testRuntimeOnly "junit:junit:${junit_version}" // hadoop-client test depends on junit
}
Expand Down

0 comments on commit a0c6d0c

Please sign in to comment.