forked from akka/akka-grpc-sample-kubernetes-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
54 lines (42 loc) · 1.95 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
name := "akka-grpc-kubernetes"
scalaVersion := "2.13.3"
resolvers += "Akka library repository".at("https://repo.akka.io/maven")
lazy val akkaVersion = "2.6.14"
lazy val discoveryVersion = "1.0.9"
lazy val akkaHttpVersion = "10.2.3"
lazy val root = (project in file("."))
.aggregate(httpToGrpc, grpcService)
// Http front end that calls out to a gRPC back end
lazy val httpToGrpc = (project in file("http-to-grpc"))
.enablePlugins(AkkaGrpcPlugin, DockerPlugin, JavaAppPackaging)
.settings(
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-discovery" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-parsing" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-core" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http2-support" % akkaHttpVersion,
"com.lightbend.akka.discovery" %% "akka-discovery-kubernetes-api" % discoveryVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3"
),
dockerExposedPorts := Seq(8080),
)
lazy val grpcService = (project in file("grpc-service"))
.enablePlugins(AkkaGrpcPlugin, DockerPlugin, JavaAppPackaging)
.settings(
dockerExposedPorts := Seq(8080),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-discovery" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.akka" %% "akka-http2-support" % akkaHttpVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3"
)
)