-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.sbt
50 lines (44 loc) · 1.56 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
name := "specs2-embedmongo"
organization := "com.github.athieriot"
description := "Specs2 helper to configure a EmbedMongo based instance"
version := "0.8.0"
scalaVersion := "2.10.7"
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.4")
libraryDependencies <++= scalaVersion(sv => Seq(
"de.flapdoodle.embed" % "de.flapdoodle.embed.mongo" % "2.0.0",
"org.specs2" %% "specs2-core" % "3.9.5",
"org.mongodb" %% "casbah-core" % "3.1.1" % "provided",
"com.github.salat" %% "salat" % "1.11.2" % "test",
"junit" % "junit" % "4.11" % "test"
))
scalacOptions in Test ++= Seq("-Yrangepos")
parallelExecution in Test := false
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := <url>http://github.com/athieriot/specs2-embedmongo</url>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.opensource.org/licenses/Apache-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:athieriot/specs2-embedmongo.git</url>
<connection>scm:git:[email protected]:athieriot/specs2-embedmongo.git</connection>
</scm>
<developers>
<developer>
<id>athieriot</id>
<name>Aurélien Thieriot</name>
<url>http://athieriot.github.com/resume</url>
</developer>
</developers>
publishTo <<= version { version: String =>
val nexus = "https://oss.sonatype.org/"
if (version.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}