Skip to content

Commit

Permalink
Enable PlayNettyServer (requires Http2 support for Netty backend)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Jan 23, 2024
1 parent 92746d2 commit c95f6e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions play-java-grpc-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ version := "1.0-SNAPSHOT"
// build.sbt
lazy val `play-java-grpc-example` = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
.enablePlugins(PekkoGrpcPlugin) // enables source generation for gRPC
.enablePlugins(PlayPekkoHttp2Support) // enables serving HTTP/2 and gRPC
// #grpc_play_plugins
Expand Down
1 change: 1 addition & 0 deletions play-scala-grpc-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ version := "1.0-SNAPSHOT"
// build.sbt
lazy val `play-scala-grpc-example` = (project in file("."))
.enablePlugins(PlayScala)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
.enablePlugins(PekkoGrpcPlugin) // enables source generation for gRPC
.enablePlugins(PlayPekkoHttp2Support) // enables serving HTTP/2 and gRPC
// #grpc_play_plugins
Expand Down
3 changes: 3 additions & 0 deletions play-scala-tls-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ val commonSettings = Seq(

lazy val one = (project in file("modules/one"))
.enablePlugins(PlayScala)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
.settings(commonSettings)

lazy val two = (project in file("modules/two"))
.enablePlugins(PlayScala)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
.settings(commonSettings)

lazy val root = (project in file("."))
.enablePlugins(PlayScala, PlayPekkoHttp2Support)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
.settings(commonSettings)
.settings(
name := """play-scala-tls-example""",
Expand Down

0 comments on commit c95f6e9

Please sign in to comment.