Skip to content

Commit abd5c32

Browse files
committed
Enable PlayNettyServer (requires Http2 support for Netty backend)
1 parent b6a97bd commit abd5c32

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

play-java-grpc-example/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ version := "1.0-SNAPSHOT"
1111
// build.sbt
1212
lazy val `play-java-grpc-example` = (project in file("."))
1313
.enablePlugins(PlayJava)
14+
//.enablePlugins(PlayNettyServer).disablePlugins(PlayAkkaHttpServer) // uncomment to use the Netty backend
1415
.enablePlugins(AkkaGrpcPlugin) // enables source generation for gRPC
1516
.enablePlugins(PlayAkkaHttp2Support) // enables serving HTTP/2 and gRPC
1617
// #grpc_play_plugins

play-scala-grpc-example/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ version := "1.0-SNAPSHOT"
1212
// build.sbt
1313
lazy val `play-scala-grpc-example` = (project in file("."))
1414
.enablePlugins(PlayScala)
15+
//.enablePlugins(PlayNettyServer).disablePlugins(PlayAkkaHttpServer) // uncomment to use the Netty backend
1516
.enablePlugins(AkkaGrpcPlugin) // enables source generation for gRPC
1617
.enablePlugins(PlayAkkaHttp2Support) // enables serving HTTP/2 and gRPC
1718
// #grpc_play_plugins

play-scala-tls-example/build.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ val commonSettings = Seq(
99

1010
lazy val one = (project in file("modules/one"))
1111
.enablePlugins(PlayScala)
12+
//.enablePlugins(PlayNettyServer).disablePlugins(PlayAkkaHttpServer) // uncomment to use the Netty backend
1213
.settings(commonSettings)
1314

1415
lazy val two = (project in file("modules/two"))
1516
.enablePlugins(PlayScala)
17+
//.enablePlugins(PlayNettyServer).disablePlugins(PlayAkkaHttpServer) // uncomment to use the Netty backend
1618
.settings(commonSettings)
1719

1820
lazy val root = (project in file("."))
1921
.enablePlugins(PlayScala, PlayAkkaHttp2Support)
22+
//.enablePlugins(PlayNettyServer).disablePlugins(PlayAkkaHttpServer) // uncomment to use the Netty backend
2023
.settings(commonSettings)
2124
.settings(
2225
name := """play-scala-tls-example""",

0 commit comments

Comments
 (0)