-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
53 lines (46 loc) · 1.32 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
Project.inConfig(Test)(sbtprotoc.ProtocPlugin.protobufConfigSettings)
lazy val commonSettings = Seq(
scalaVersion := "2.11.12",
organization := "com.harborx",
crossScalaVersions := Seq("2.11.12", "2.12.4"),
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature",
"-encoding",
"utf8",
"-language:postfixOps",
"-Yrangepos",
"-language:implicitConversions"
),
fork in Test := true,
// protobuf
PB.targets in Test := Seq(
scalapb.gen(
flatPackage = true,
javaConversions = false,
grpc = false,
singleLineToString = true) -> (sourceManaged in Test).value
)
)
// root project
lazy val mongo = (project in file(".")).
settings(commonSettings: _*).
settings(
// other settings
name := "harborx-mongo",
version := "1.0.6",
libraryDependencies ++= Seq(
// scalapb
"com.trueaccord.scalapb" %% "scalapb-json4s" % "0.3.2",
// mongo-scala-driver
"org.mongodb.scala" %% "mongo-scala-driver" % "2.1.0",
// Rx
"org.reactivestreams" % "reactive-streams" % "1.0.1",
// scalatest
"org.scalatest" %% "scalatest" % "3.0.2" % "test",
// akka stream for testing
"com.typesafe.akka" %% "akka-stream" % "2.5.4" % "test",
"com.typesafe.akka" %% "akka-stream-testkit" % "2.5.4" % "test"
)
)