-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
96 lines (85 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
94
95
import scalariform.formatter.preferences._
name := "reactivemongo-extensions"
lazy val commonSettings = Seq(
organization := "net.fehmicansaglam",
version := "0.10.0.5-SNAPSHOT",
scalaVersion := "2.10.4",
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-encoding", "utf8",
"-feature",
"-language:higherKinds",
"-language:postfixOps",
"-language:implicitConversions",
"-language:existentials"),
resolvers ++= Seq(
"Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/"),
parallelExecution in Test := true,
javaOptions in Test ++= Seq("-Xmx512m", "-XX:MaxPermSize=512m"),
testOptions in Test += Tests.Argument("-oDS"),
shellPrompt in ThisBuild := Common.prompt,
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignParameters, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(MultilineScaladocCommentsStartOnFirstLine, true)
.setPreference(PlaceScaladocAsterisksBeneathSecondAsterisk, true))
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishArtifact in Test := false,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := (
<url>http://github.com/fehmicansaglam/reactivemongo-extensions</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:fehmicansaglam/reactivemongo-extensions.git</url>
<connection>scm:[email protected]:fehmicansaglam/reactivemongo-extensions.git</connection>
</scm>
<developers>
<developer>
<id>fehmicansaglam</id>
<name>Fehmi Can Saglam</name>
<url>http://github.com/fehmicansaglam</url>
</developer>
<developer>
<id>osxhacker</id>
<name>Steve Vickers</name>
<url>http://github.com/osxhacker</url>
</developer>
</developers>))
lazy val settings = (
commonSettings
++ scalariformSettings
++ org.scalastyle.sbt.ScalastylePlugin.Settings)
lazy val root = project.in(file("."))
.aggregate(bson, json, core, samples)
.settings(settings: _*)
.settings(unidocSettings: _*)
.settings(publishArtifact := false)
lazy val core = project.in(file("core"))
.settings(settings: _*)
.settings(publishSettings: _*)
lazy val bson = project.in(file("bson"))
.settings(settings: _*)
.settings(publishSettings: _*)
.dependsOn(core % "test->test;compile->compile")
lazy val json = project.in(file("json"))
.settings(settings: _*)
.settings(publishSettings: _*)
.dependsOn(core % "test->test;compile->compile")
lazy val samples = project.in(file("samples"))
.settings(settings: _*)
.settings(publishSettings: _*)
.dependsOn(core % "test->test;compile->compile", bson % "compile->compile")