diff --git a/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/jsontogrpc-factory.adoc b/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/jsontogrpc-factory.adoc index b5ce622e1e..77784f5e52 100644 --- a/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/jsontogrpc-factory.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-gateway-server-webflux/gatewayfilter-factories/jsontogrpc-factory.adoc @@ -3,6 +3,34 @@ The JSONToGRPC GatewayFilter Factory converts a JSON payload to a gRPC request. +[[jsontogrpc-dependencies]] +== Required Dependencies + +The `JsonToGrpc` filter relies on optional dependencies that are not included transitively. +You must add the following to your project: + +[source,xml] +---- + + io.grpc + grpc-netty + + + io.grpc + grpc-protobuf + + + io.grpc + grpc-stub + + + com.google.protobuf + protobuf-java-util + +---- + +NOTE: Without these dependencies, the gateway will throw a `NoClassDefFoundError` at runtime when the filter is invoked. + The filter takes the following arguments: * `service`: Short name of the service that handles the request.