Skip to content

Commit

Permalink
Move new Hadoop3 deps into the Provided scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Apr 12, 2021
1 parent f8e6111 commit 8f95f6b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ object Settings {
"-language:existentials",
"-language:experimental.macros",
"-feature",
// "-Ypartial-unification", // required by Cats
// "-Yrangepos", // required by SemanticDB compiler plugin
// "-Ywarn-unused-import", // required by `RemoveUnused` rule
"-target:jvm-1.8")
Expand Down Expand Up @@ -151,8 +150,7 @@ object Settings {
libraryDependencies ++= Seq(
accumuloCore
exclude("org.jboss.netty", "netty")
exclude("org.apache.hadoop", "hadoop-client"),
hadoopClient % Provided
exclude("org.apache.hadoop", "hadoop-client")
),
console / initialCommands :=
"""
Expand Down Expand Up @@ -382,10 +380,7 @@ object Settings {
hbaseHadoop2Compact,
hbaseMetrics,
hbaseMetricsApi,
hbaseZooKeeper,
woodstoxCore,
stax2Api,
commonsConfiguration2
hbaseZooKeeper
).map(_ exclude("javax.servlet", "servlet-api") exclude("org.mortbay.jetty", "servlet-api-2.5")),
libraryDependencies += jacksonCoreAsl,
console / initialCommands :=
Expand All @@ -403,6 +398,9 @@ object Settings {
name := "geotrellis-hbase-spark",
libraryDependencies ++= Seq(
hadoopClient % Provided,
woodstoxCore % Provided,
stax2Api % Provided,
commonsConfiguration2 % Provided,
apacheSpark("core").value % Provided,
apacheSpark("sql").value % Test,
scalatest % Test
Expand Down Expand Up @@ -556,10 +554,10 @@ object Settings {
lazy val spark = Seq(
name := "geotrellis-spark",
libraryDependencies ++= Seq(
woodstoxCore,
stax2Api,
commonsConfiguration2,
re2j,
woodstoxCore % Provided,
stax2Api % Provided,
commonsConfiguration2 % Provided,
re2j % Provided,
apacheSpark("core").value % Provided,
hadoopClient % Provided,
apacheSpark("sql").value % Test,
Expand Down

0 comments on commit 8f95f6b

Please sign in to comment.