-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
92 lines (64 loc) · 2.84 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
import ReleaseTransformations._
import sbt.Keys.testForkedParallel
name := "ojai-testing"
scalaVersion := "2.11.8"
lazy val supportedScalaVersions = Seq("2.11.8", "2.12.8")
organization in ThisBuild := "com.github.anicolaspp"
lazy val maprdbconnector = project.in(file("."))
.settings(
homepage := Some(url("https://github.com/anicolaspp/ojai-testing")),
scmInfo := Some(ScmInfo(url("https://github.com/anicolaspp/ojai-testing"), "[email protected]:anicolaspp/ojai-testing.git")),
pomExtra := <developers>
<developer>
<name>Nicolas A Perez</name>
<email>[email protected]</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/.m2/repository"))),
publishTo in ThisBuild := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
publishArtifact in Test := false,
parallelExecution in Test := false,
testForkedParallel in Test := false,
pomIncludeRepository := { _ => true },
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseCrossBuild := true,
crossScalaVersions := supportedScalaVersions,
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(
"com.mapr.ojai" % "mapr-ojai-driver" % "6.1.0-mapr",
"org.apache.hadoop" % "hadoop-client" % "2.7.0-mapr-1808",
"org.ojai" % "ojai" % "3.0-mapr-1808",
"org.ojai" % "ojai-scala" % "3.0-mapr-1808",
"com.mapr.db" % "maprdb" % "6.1.0-mapr",
"xerces" % "xercesImpl" % "2.11.0",
"org.scalactic" %% "scalactic" % "3.0.5",
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
)
excludeDependencies += "javax.jms"
excludeDependencies += "com.sun.jdmk"
excludeDependencies += "com.sun.jmx"
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)