-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
83 lines (74 loc) · 2.34 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
import sbt.Keys.licenses
val Version = com.github.vipo.Grpc4s.Version
val ScalaPbVersion = scalapb.compiler.Version.scalapbVersion
val GrpcIoVersion = "1.20.0"
lazy val commonSettings = Seq(
version := Version,
organization := "com.github.vipo",
scalaVersion := "2.12.8",
scalacOptions := Seq("-deprecation", "-unchecked", "-language:_", "-encoding", "UTF-8"),
bintrayRepository := "grpc4s",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
libraryDependencies ++= Seq(
"com.google.protobuf" % "protobuf-java" % "3.6.1",
"com.thesamet.scalapb" %% "protoc-bridge" % "0.7.3",
"com.thesamet.scalapb" %% "scalapb-runtime" % ScalaPbVersion,
"com.thesamet.scalapb" %% "scalapb-runtime-grpc" % ScalaPbVersion,
"io.grpc" % "grpc-core" % GrpcIoVersion
)
)
lazy val noPublish = Seq(
publish := {},
publishLocal := {}
)
lazy val root = (project in file("."))
.settings(
commonSettings,
noPublish
)
.aggregate(monix, zio, vanilla, runtime)
.dependsOn(monix, zio, vanilla)
lazy val protos = (project in file("test-protos"))
.settings(
commonSettings,
noPublish,
name := "grpc4s-test-protos",
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4"
)
)
.dependsOn(runtime)
lazy val monix = (project in file("monix"))
.settings(
commonSettings,
name := "grpc4s-monix",
libraryDependencies ++= Seq(
"io.monix" %% "monix" % "3.0.0-RC2",
"io.grpc" % "grpc-netty" % GrpcIoVersion % "test"
)
)
.dependsOn(runtime, protos % "test")
lazy val zio = (project in file("zio"))
.settings(
commonSettings,
name := "grpc4s-zio",
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-zio" % "0.6.0",
"io.grpc" % "grpc-netty" % GrpcIoVersion % "test"
)
)
.dependsOn(runtime, protos % "test")
lazy val vanilla = (project in file("vanilla"))
.settings(
commonSettings,
name := "grpc4s-vanilla",
libraryDependencies ++= Seq(
"io.grpc" % "grpc-netty" % GrpcIoVersion % "test"
)
)
.dependsOn(runtime, protos % "test")
lazy val runtime = (project in file("runtime"))
.settings(
commonSettings,
name := "grpc4s-runtime",
)