forked from ReactiveMongo/ReactiveMongo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
84 lines (75 loc) · 2.79 KB
/
build.sbt
File metadata and controls
84 lines (75 loc) · 2.79 KB
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
lazy val `ReactiveMongo-Core` = project.in(file("core")).settings(
Compile / sourceDirectories ++= Seq(
(Compile / sourceDirectory).value / "scala-2.11+"),
libraryDependencies ++= {
val deps = Dependencies.shaded.value
("org.reactivemongo" %% "reactivemongo-bson-api" % version.
value) +: deps ++: Seq(
"com.github.luben" % "zstd-jni" % "1.5.2-3",
"org.xerial.snappy" % "snappy-java" % "1.1.8.4",
Dependencies.specs.value
)
},
// Silent mock for Scala3
Test / doc / scalacOptions ++= List("-skip-packages", "com.github.ghik"),
Compile / packageBin / mappings ~= {
_.filter {
case (_, path) => !path.startsWith("com/github/ghik")
}
},
Compile / packageSrc / mappings ~= {
_.filter {
case (_, path) => path != "silent.scala"
}
},
//
mimaBinaryIssueFilters ++= {
import com.typesafe.tools.mima.core._
val mtp = ProblemFilters.exclude[MissingTypesProblem](_)
Seq(
mtp("reactivemongo.core.protocol.KillCursors"),
mtp("reactivemongo.core.protocol.Update"),
mtp("reactivemongo.core.protocol.WriteRequestOp"),
mtp("reactivemongo.core.protocol.CollectionAwareRequestOp"),
mtp("reactivemongo.core.protocol.Query"),
mtp("reactivemongo.core.protocol.MessageHeader$"),
mtp("reactivemongo.core.protocol.MessageHeader"),
mtp("reactivemongo.core.protocol.Delete"),
mtp("reactivemongo.core.protocol.GetMore"),
mtp("reactivemongo.core.protocol.RequestOp"),
mtp("reactivemongo.core.protocol.Insert"),
mtp("reactivemongo.core.protocol.Reply$"),
mtp("reactivemongo.core.protocol.ResponseDecoder"),
mtp("reactivemongo.core.actors.MongoDBSystem$OperationHandler"),
mtp("reactivemongo.core.netty.ChannelFactory"),
mtp("reactivemongo.core.protocol.MongoHandler"),
mtp("reactivemongo.core.protocol.ResponseFrameDecoder"),
mtp("reactivemongo.core.protocol.RequestEncoder")
)
}
)
lazy val `ReactiveMongo` = new Driver(`ReactiveMongo-Core`).module
lazy val `ReactiveMongo-Test` = project.in(file("test")).settings(
description := "ReactiveMongo test helpers",
).dependsOn(`ReactiveMongo`)
// ---
def docSettings = Documentation(excludes = Seq.empty).settings
lazy val `ReactiveMongo-Root` = project.in(file(".")).
enablePlugins(ScalaUnidocPlugin).
settings(docSettings ++ Seq(
mimaPreviousArtifacts := Set.empty,
publishArtifact := false,
publishTo := None,
publishLocal := {},
publish := {}
)).aggregate(
`ReactiveMongo-Core`,
`ReactiveMongo`,
`ReactiveMongo-Test`)
lazy val benchmarks = (project in file("benchmarks")).
enablePlugins(JmhPlugin).
settings(Compiler.settings ++ Seq(
libraryDependencies += organization.value % "reactivemongo-shaded" % version.value
)
).
dependsOn(`ReactiveMongo`)