The serverside SSL was working, but the clients were not able to
connect because they all had insecure call credentials. This change
adds a NegotiationType enum for configuring the client, and an
integration test that uses it (implicitly).
Also move some logic around. The netty-specific channel factories
weren't doing any work. This makes them do something, so more
classpath-dependent logic can go into them.
There's no integration test per se, but the GrpcServerApplicationTests
main method runs the server securely with an anonymous certificate, so
you can test it manually with grpcurl -insecure.
See #10
This adds the spring-javaformat plugin to the samples
module. The motivation is as follows:
- Keep the samples in the Spring recommended format
- Allow running `./mvnw spring-javaformat:apply` at project root