Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft move of GRPC.proto to the api. #153

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions grpc-example/grpc-example-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,32 @@ lazy val `lagom-scala-grpc-example` = (project in file("."))
.aggregate(`hello-api`, `hello-impl`, `hello-proxy-api`, `hello-proxy-impl`)

lazy val `hello-api` = (project in file("hello-api"))
.settings(
libraryDependencies += lagomScaladslApi
)
.enablePlugins(AkkaGrpcPlugin) // enables source generation for gRPC
.enablePlugins(PlayAkkaHttp2Support) // enables serving HTTP/2 and gRPC
.settings(
akkaGrpcGeneratedLanguages := Seq(AkkaGrpc.Scala),
akkaGrpcExtraGenerators := Seq(PlayScalaClientCodeGenerator, PlayScalaServerCodeGenerator),
akkaGrpcGeneratedSources :=
Seq(
AkkaGrpc.Server,
AkkaGrpc.Client // the client is only used in tests. See https://github.com/akka/akka-grpc/issues/410
),
)
.settings(
libraryDependencies ++= Seq(
lagomScaladslApi,
playGrpcRuntime,
)
)

lazy val `hello-impl` = (project in file("hello-impl"))
.enablePlugins(LagomScala)
.enablePlugins(AkkaGrpcPlugin) // enables source generation for gRPC
.enablePlugins(PlayAkkaHttp2Support) // enables serving HTTP/2 and gRPC
.settings(
akkaGrpcGeneratedLanguages := Seq(AkkaGrpc.Scala),
akkaGrpcGeneratedSources :=
Seq(
AkkaGrpc.Server,
AkkaGrpc.Client // the client is only used in tests. See https://github.com/akka/akka-grpc/issues/410
),
akkaGrpcExtraGenerators in Compile += PlayScalaServerCodeGenerator,
).settings(
workaroundSettings:_*
).settings(
libraryDependencies ++= Seq(
lagomScaladslTestKit,
macwire,
playGrpcRuntime,
scalaTest,
lagomGrpcTestkit
)
Expand All @@ -63,11 +66,7 @@ lazy val `hello-proxy-api` = (project in file("hello-proxy-api"))

lazy val `hello-proxy-impl` = (project in file("hello-proxy-impl"))
.enablePlugins(LagomScala)
.enablePlugins(AkkaGrpcPlugin) // enables source generation for gRPC
.settings(
akkaGrpcGeneratedLanguages := Seq(AkkaGrpc.Scala),
akkaGrpcExtraGenerators += PlayScalaClientCodeGenerator,
).settings(
libraryDependencies ++= Seq(
lagomScaladslTestKit,
macwire,
Expand Down

This file was deleted.