forked from ReactiveMongo/ReactiveMongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
61 lines (49 loc) · 1.97 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
lazy val `ReactiveMongo-Shaded` = Shaded.commonModule
//scalafixDependencies in ThisBuild += "org.scala-lang.modules" %% "scala-collection-migrations" % "2.0.0"
//scalacOptions ++= List("-Yrangepos", "-P:semanticdb:synthetics:on")
lazy val `ReactiveMongo-BSON` = new Bson(`ReactiveMongo-Shaded`).module
lazy val `ReactiveMongo-BSON-Macros` = project.in(file("macros")).
enablePlugins(CpdPlugin).
dependsOn(`ReactiveMongo-BSON`).
settings(
Common.settings ++ Findbugs.settings ++ Seq(
libraryDependencies ++= Seq(Dependencies.specs.value,
"org.scala-lang" % "scala-compiler" % scalaVersion.value % Provided,
Dependencies.shapelessTest % Test
)
)
)
lazy val `ReactiveMongo-Shaded-Native-osx-x86_64` =
Shaded.nativeModule("osx-x86_64", "kqueue")
lazy val `ReactiveMongo-Shaded-Native-linux-x86_64` =
Shaded.nativeModule("linux-x86_64", "epoll")
lazy val `ReactiveMongo` = new Driver(
`ReactiveMongo-BSON-Macros`,
`ReactiveMongo-Shaded`,
`ReactiveMongo-Shaded-Native-linux-x86_64`,
`ReactiveMongo-Shaded-Native-osx-x86_64`
).module
lazy val `ReactiveMongo-JMX` = new Jmx(`ReactiveMongo`).module
// ---
def docSettings = Documentation(excludes = Seq(`ReactiveMongo-Shaded`, `ReactiveMongo-JMX`)).settings
lazy val `ReactiveMongo-Root` = project.in(file(".")).
enablePlugins(ScalaUnidocPlugin, CpdPlugin).
settings(Common.settings ++ docSettings ++
Travis.settings ++ Seq(
publishArtifact := false,
publishTo := None,
publishLocal := {},
publish := {},
mimaPreviousArtifacts := Set.empty
)).aggregate(
`ReactiveMongo-BSON`,
`ReactiveMongo-BSON-Macros`,
`ReactiveMongo-Shaded`,
`ReactiveMongo-Shaded-Native-osx-x86_64`,
`ReactiveMongo-Shaded-Native-linux-x86_64`,
`ReactiveMongo`,
`ReactiveMongo-JMX`)
lazy val benchmarks = (project in file("benchmarks")).
enablePlugins(JmhPlugin).
settings(Common.settings ++ Compiler.settings).
dependsOn(`ReactiveMongo-BSON` % "compile->test")