Gradle support in Play

To enable the Play support in a Gradle project you need to set the option generatePlay to true. This will make sure play-specific code is generated in addition to plain Akka gRPC code:

akkaGrpc {
  language = "Java"
  generateClient = true
  generateServer = true
  extraGenerators = [
    'akka.grpc.gen.javadsl.play.PlayJavaClientCodeGenerator',
    'akka.grpc.gen.javadsl.play.PlayJavaServerCodeGenerator'
  ]
}

See the Akka gRPC Gradle support docs for further details.

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.