From c95f6e908bedab2deb9a749944076e18d264ed9f Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Tue, 23 Jan 2024 10:11:47 +0100 Subject: [PATCH] Enable PlayNettyServer (requires Http2 support for Netty backend) --- play-java-grpc-example/build.sbt | 1 + play-scala-grpc-example/build.sbt | 1 + play-scala-tls-example/build.sbt | 3 +++ 3 files changed, 5 insertions(+) diff --git a/play-java-grpc-example/build.sbt b/play-java-grpc-example/build.sbt index d313eec1a..1e084d0ec 100644 --- a/play-java-grpc-example/build.sbt +++ b/play-java-grpc-example/build.sbt @@ -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 diff --git a/play-scala-grpc-example/build.sbt b/play-scala-grpc-example/build.sbt index 159bed6d3..109d54740 100644 --- a/play-scala-grpc-example/build.sbt +++ b/play-scala-grpc-example/build.sbt @@ -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 diff --git a/play-scala-tls-example/build.sbt b/play-scala-tls-example/build.sbt index 7198aaef8..f359a3152 100644 --- a/play-scala-tls-example/build.sbt +++ b/play-scala-tls-example/build.sbt @@ -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""",