-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
93 lines (65 loc) · 3.01 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
92
93
import ReleaseTransformations._
name := "ojai-scala-generics"
scalaVersion := "2.11.8"
//lazy val supportedScalaVersions = Seq(scalaVersion., "2.12")
organization in ThisBuild := "com.github.anicolaspp"
lazy val maprdbconnector = project.in(file("."))
.settings(
homepage := Some(url("https://github.com/anicolaspp/ojai-generics")),
scmInfo := Some(ScmInfo(url("https://github.com/anicolaspp/ojai-generics"), "git@github.com:anicolaspp/ojai-generics.git")),
pomExtra := <developers>
<developer>
<name>Nicolas A Perez</name>
<email>anicolaspp@gmail.com</email>
<organization>anicolaspp</organization>
<organizationUrl>https://github.com/anicolaspp</organizationUrl>
</developer>
</developers>,
licenses += ("MIT License", url("https://opensource.org/licenses/MIT")),
publishMavenStyle := true,
// publishTo := Some(Resolver.file("file", new File("/Users/nperez/maven"))),
publishTo in ThisBuild := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
publishArtifact in Test := false,
pomIncludeRepository := { _ => true },
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseCrossBuild := true,
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
),
// crossScalaVersions := supportedScalaVersions,
resolvers += "MapR Releases" at "http://repository.mapr.com/maven/",
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
// resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository",
libraryDependencies ++= Seq(
"org.ojai" % "ojai" % "3.0-mapr-1808" % "provided",
"org.ojai" % "ojai-scala" % "3.0-mapr-1808" % "provided",
"com.mapr.db" % "maprdb" % "6.1.0-mapr" % "provided",
"xerces" % "xercesImpl" % "2.11.0" % "provided",
"org.scalactic" %% "scalactic" % "3.0.5",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"com.github.anicolaspp" % "ojai-testing_2.11" % "1.0.4"
)
)
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"