-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
executable file
·59 lines (43 loc) · 1.77 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
56
57
58
59
name := "brgroup"
version := "0.1"
scalaVersion := "2.11.12"
val sparkVersion = "2.4.0"
val SparkCompatibleVersion = "2.4"
val SedonaVersion = "1.2.0-incubating"
val ScalaCompatibleVersion = "2.11"
val dependencyScope = "compile"
// adding some resolver for packages
resolvers ++= Seq(
"bintray-spark-packages" at "https://dl.bintray.com/spark-packages/maven",
"Typesafe Simple Repository" at "https://repo.typesafe.com/typesafe/simple/maven-releases",
"MavenRepository" at "https://mvnrepository.com"
)
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.postgresql" % "postgresql" % "42.4.1" % "provided",
"com.databricks" %% "spark-xml" % "0.13.0",
"org.ini4j" % "ini4j" % "0.5.4",
// logging
"org.apache.logging.log4j" % "log4j-api" % "2.18.0",
"org.apache.logging.log4j" % "log4j-core" % "2.18.0",
//testing
"com.github.mrpowers" %% "spark-fast-tests" % "0.23.0" % Test,
"org.scalatest" %% "scalatest" % "3.2.10" % Test
)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs@_*) => MergeStrategy.discard
case x => MergeStrategy.first
}
assemblyJarName in assembly := s"${name.value}-${version.value}.jar"
publishArtifact in makePom := false
publishArtifact in (Compile, packageBin) := false
publishArtifact in (Compile, packageDoc) := false
publishArtifact in (Compile, packageSrc) := false
publishConfiguration := publishConfiguration.value.withOverwrite(true)
assembly / artifact := {
val art = (assembly / artifact).value
art.withClassifier(Some("assembly"))
}
addArtifact(assembly / artifact, assembly)
publishTo := Some(Resolver.file("file", new File("./spark")))