-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
55 lines (49 loc) · 2.14 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name := "gcp-datalake"
version := "0.1"
scalaVersion := "2.11.8"
resolvers += "MVN" at "http://central.maven.org/maven2/"
resolvers += "HDP" at "http://repo.hortonworks.com/content/groups/public/"
// additional libraries
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "2.2.3" % "provided",
"org.apache.spark" %% "spark-sql" % "2.2.3" % "provided",
"org.apache.spark" %% "spark-hive" % "2.2.3" % "provided",
"org.apache.hbase" % "hbase-common" % "2.0.4" % "compile",
"org.apache.hbase" % "hbase-server" % "2.0.4" % "compile",
"org.apache.hbase" % "hbase-mapreduce" % "2.0.4" % "compile",
"io.grpc" % "grpc-netty-shaded" % "1.25.0" % "compile",
"com.google.guava" % "guava" % "28.1-jre" % "compile",
//"com.google.cloud.bigtable" % "bigtable-hbase-1.x" % "1.11.0",
"com.google.cloud.bigtable" % "bigtable-hbase-2.x-hadoop" % "1.9.0" % "compile",
"org.apache.hbase" % "hbase-client" % "2.0.4" % "compile",
// Adding custom compiled SHC
//"com.hortonworks" % "shc-core" % "1.1.1-2.1-s_2.11" % "compile",
"org.scalatest" % "scalatest_2.11" % "3.0.5" % "test",
"org.mockito" % "mockito-core" % "2.18.0" % "test"
//"commons-validator" % "commons-validator" % "1.6" % "compile",
//"io.netty" % "netty-all" % "4.1.17.Final" % "provided"
)
unmanagedBase := baseDirectory.value / "lib"
assemblyMergeStrategy in assembly := {
case x if Assembly.isConfigFile(x) =>
MergeStrategy.concat
case PathList(ps@_*) if Assembly.isReadme(ps.last) || Assembly.isLicenseFile(ps.last) =>
MergeStrategy.rename
case PathList("META-INF", xs@_*) =>
(xs map {
_.toLowerCase
}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps@(x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.first
}
case _ => MergeStrategy.first
}