-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
29 lines (26 loc) · 1.03 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
lazy val commonSettings = Seq(
organization := "com.bigcommerce",
version := "0.1.0",
scalaVersion := "2.12.2"
)
val GRPC_VERSION = "1.3.0"
val SCALAPB_VERSION = com.trueaccord.scalapb.compiler.Version.scalapbVersion
lazy val interfaces =
(project in file("interfaces"))
.settings(commonSettings)
.settings(watchSources ++= ((baseDirectory.value / "src" / "main" / "protobuf") ** "*.proto").get)
.settings(libraryDependencies ++= Seq(
"io.grpc" % "grpc-stub" % GRPC_VERSION,
"com.trueaccord.scalapb" %% "scalapb-runtime" % SCALAPB_VERSION % "protobuf",
"com.trueaccord.scalapb" %% "scalapb-runtime-grpc" % SCALAPB_VERSION
))
.settings(PB.targets in Compile := Seq(
scalapb.gen(flatPackage = false) -> (sourceManaged in Compile).value
))
lazy val root = Project(id = "fortune", base = file("."))
.settings(commonSettings: _*)
.settings(libraryDependencies ++= Seq(
"io.grpc" % "grpc-netty" % GRPC_VERSION,
"com.typesafe.akka" %% "akka-actor" % "2.5.2"
))
.dependsOn(interfaces)