-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
91 lines (66 loc) · 3.15 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import ReleaseTransformations._
name := "MapRDBConnector"
scalaVersion := "2.11.8"
organization in ThisBuild := "com.github.anicolaspp"
lazy val maprdbconnector = project.in(file("."))
.settings(
homepage := Some(url("https://github.com/anicolaspp/MapRDBConnector")),
scmInfo := Some(ScmInfo(url("https://github.com/anicolaspp/MapRDBConnector"), "[email protected]:anicolaspp/MapRDBConnector.git")),
pomExtra := <developers>
<developer>
<name>Nicolas A Perez</name>
<email>[email protected]</email>
<organization>anicolaspp</organization>
<organizationUrl>https://github.com/anicolaspp</organizationUrl>
</developer>
<developer>
<name>Ivan Ulianov</name>
<email>[email protected]</email>
<organization>iulianov</organization>
<organizationUrl>https://github.com/iulianov</organizationUrl>
</developer>
</developers>,
licenses += ("MIT License", url("https://opensource.org/licenses/MIT")),
publishMavenStyle := true,
publishTo in ThisBuild := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
publishArtifact in Test := false,
pomIncludeRepository := { _ => true },
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
// setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
),
resolvers += "MapR Releases" at "http://repository.mapr.com/maven/",
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
libraryDependencies ++= Seq(
"org.apache.spark" % "spark-core_2.11" % "2.3.2" % "provided",
"org.apache.spark" % "spark-sql_2.11" % "2.3.2" % "provided",
"org.ojai" % "ojai" % "3.0-mapr-1808",
"org.ojai" % "ojai-scala" % "3.0-mapr-1808",
"com.mapr.db" % "maprdb-spark" % "2.3.1-mapr-1808" % "provided",
"com.mapr.db" % "maprdb" % "6.1.0-mapr" % "provided",
"xerces" % "xercesImpl" % "2.11.0" % "provided"
)
)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
assemblyMergeStrategy in assembly := {
case PathList("org", "apache", "spark", "unused", xs@_*) => MergeStrategy.last
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
assemblyJarName := s"${name.value}-${version.value}.jar"