30 Commits

Author SHA1 Message Date
Dave Syer
2d2e0d8b8e Ready for 0.1.0 2024-10-25 12:20:47 +01:00
Dave Syer
42b54708aa Add sample with Shaded Netty 2024-10-25 12:10:57 +01:00
Dave Syer
c358f6ef4d Move GrpcServlet to autoconfiguration
Signed-off-by: Dave Syer <dsyer@vmware.com>
2024-10-23 11:26:34 +01:00
Dave Syer
1997593755 Add tomcat sample (no autoconfig)
Signed-off-by: Dave Syer <dsyer@vmware.com>
2024-10-23 11:26:16 +01:00
varunu28
434e26dcec Rename bom to dependencies 2024-10-21 09:41:42 +01:00
Chris Bono
213d1f9bd8 Add spring-grpc-spring-boot-starter module
This commit does the following:

* Adds a `spring-grpc-spring-boot-starter` module

* Adjusts the scope of the dependencies in the`spring-grpc-spring-boot-autoconfigure`
  module to optional
2024-10-21 08:30:54 +01:00
Chris Bono
f31d6ad6f7 Remove dependency on javax.annotation
This commit removes the directy dependency that was required
by the protoc compiler for our samples. The Maven and Gradle
now support an option to use an internal annotation which then
allows us to remove the deprecated javax.annotation dependency.

Background here: https://github.com/grpc/grpc-java/pull/10927
2024-10-20 21:09:13 +01:00
Chris Bono
c856f71159 Clean up dependencies and versions
This commit does the following:

- Update various dependencies to latest patch versions
- Remove unused dependencies
- Remove unused version properties
- Remove Spring Boot references in all modules except autoconfigure
  and samples
2024-10-20 21:09:13 +01:00
Dave Syer
3cb6ce3912 Move code around so factory gets address not port 2024-10-19 07:52:50 +01:00
Dave Syer
85de440e50 Use dependency management plugin to resolve versions 2024-10-17 11:46:31 +01:00
Dave Syer
e9298a3f06 Add Gradle configuration for sample 2024-10-16 13:54:11 +01:00
Dave Syer
f0a84cec5d Sack the flatten plugin, at least till it works 2024-10-16 13:02:45 +01:00
Dave Syer
d2ec311d07 Resolve placeholders in channel address 2024-10-14 10:49:43 +01:00
Dave Syer
b92fd43664 Add support for client connection negotiation
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.
2024-10-14 10:46:53 +01:00
Dave Syer
fab5c73be1 Add support for server-side SSL
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
2024-10-11 12:12:38 +01:00
Dave Syer
8263972b63 Move vanilla integration test back to its own source file 2024-10-08 17:06:26 +01:00
Dave Syer
b30dc45e5a Add README to sample and make sure it works 2024-10-08 14:34:34 +01:00
Chris Bono
1529658106 Consolidate samples into single integration test
This commit moves the current sample variants into a single
integration test (GrpcServerApplicationTests) leveraging the
Junit5 `@Nested` feature.
2024-10-07 09:04:51 +01:00
Dave Syer
acfa3f641a Also replace in poms and docs metadata 2024-10-01 08:49:16 +01:00
Chris Bono
32286cfbed Add format plugin to samples
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
2024-09-23 07:45:45 +01:00
Dave Syer
f38a16fee9 Add support for external client (channel) config
Fixes #11
2024-09-16 13:25:29 +01:00
Dave Syer
cf0e396fcd Support for non-default address spring.grpc.server 2024-09-10 14:01:01 +01:00
Dave Syer
777180db30 Add support for unix domain sockets 2024-09-09 15:41:24 +01:00
Dave Syer
2249f6e2b3 Support for @LocalGrpcPort in @Lazy beans 2024-09-09 13:26:05 +01:00
Dave Syer
a406f7dc2f Add basic GrpcChannelFactory implementation 2024-09-09 10:52:36 +01:00
Dave Syer
6323cf9d86 Simplify through use of grpc builder APIs 2024-09-09 09:10:46 +01:00
Dave Syer
4beb624978 Remove unimplemented config properties 2024-09-06 11:57:35 +01:00
Dave Syer
f4d7625de8 Rename package 2024-09-06 11:56:07 +01:00
Dave Syer
aeef454cb0 Add basic autoconfiguration for server and sample 2024-09-06 09:29:45 +01:00
Dave Syer
c3a8eed64f Add server sample 2024-09-05 13:12:34 +01:00