343 Commits

Author SHA1 Message Date
Dave Syer
3e069a6ca4 Update to version 3.4.2 of Maven plugin 2025-06-16 11:07:36 +01:00
Dave Syer
08988c042f Add default service config to GrpcClientProperties
Ensure that it doesn't conflict with health service configuration.

Also ensure random port is used in all tests.

Fixes gh-171 (as far as we can)
2025-06-16 09:22:23 +01:00
Dave Syer
ced5936c02 Fix status trailers in exception handler 2025-06-12 13:54:33 +01:00
Chris Bono
2dd4b9e2e4 Adjust verbiage
Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-06-09 21:42:32 +01:00
Chris Bono
87b2ec9f3b Add docs for inprocess server and channel factories
Resolves #144

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-06-09 21:42:32 +01:00
Chris Bono
171f2556df Fixes to allow non-test inprocess channels
- Fix @LocalGrpcPort to ignore the inprocess factory port
- Don't set load balancer policy for inprocess channel factory

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-06-09 16:01:38 +01:00
Chris Bono
a087eac776 Add support for in-process outside of tests
This commit allows the usage of inprocess server and channel factories
outside of tests.

Resolves #144

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-06-09 16:01:38 +01:00
Dave Syer
fcd70ee4e3 Broken docs build 2025-06-06 17:20:30 +01:00
Dave Syer
b1c36cd559 Correct reference to old annotation name 2025-06-06 17:16:24 +01:00
Chris Bono
e0be15a051 Polish "Reinstate changes from 'Improve Gradle instructions in README.md'"
Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-05-31 13:45:21 -05:00
Chris Bono
a37b188917 Reinstate changes from "Improve Gradle instructions in README.md"
The changes made in commit da5b55cbe3 were
implemented the auto-generated README rather than the adoc file that is
used to generate the README. This commit moves the changes into the
source adoc file.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-05-31 13:38:25 -05:00
Dave Syer
38eed22a0f Revert to src/main/proto for samples 2025-05-30 10:47:25 +01:00
Dave Syer
d4b89b5d97 Update docs 2025-05-29 15:27:06 +01:00
Dave Syer
f1b8bfacb4 Merge two classes into one
Fixes gh-166
2025-05-29 13:13:32 +01:00
Dave Syer
8c27fe8ab7 Remove GrpcClientFactoryCustomizer
Existing APIs for customizing channel creation can be used instead.
2025-05-29 13:05:04 +01:00
Dave Syer
c2a43c2f87 Attempt to fix plugin mess 2025-05-28 12:52:19 +01:00
Dave Syer
d1b8a84637 Revert "Same for gradle" 2025-05-28 12:31:31 +01:00
Dave Syer
b57f50a38a Revert "Recent plugins do not require extra config" 2025-05-28 12:17:34 +01:00
Dave Syer
588c07f935 Same for gradle 2025-05-27 14:22:18 +01:00
Dave Syer
51c2ee5d1b Recent plugins do not require extra config 2025-05-27 14:22:18 +01:00
Chris Bono
09100d2c96 Polish "Improve Gradle instructions in README.md"
- Makes all Maven and Gradle commands use the wrappers
- Corrects the generated paths for Maven
- Moves note about package name up to admonition

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-05-26 13:39:15 -05:00
Abhishek Singh
da5b55cbe3 Improve Gradle instructions in README.md
This improves the "Getting started" section of
README.md for Gradle users.

Signed-off-by: Abhishek Singh <tech.singh.abhishek@gmail.com>
2025-05-26 13:39:15 -05:00
Dave Syer
f560c1d75c No need for motd extension in samples 2025-05-26 11:05:11 +01:00
Dave Syer
b70b7e5633 Upgrade plugin 2025-05-26 11:05:11 +01:00
Chris Bono
b00c49d055 Polish "Update Kotlin sample to Spring Boot 3.5.0"
Updates the Spring Boot version to 3.5.0 in the Kotlin
sample docs.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-05-25 17:32:52 -05:00
Mingyuan Wu
544d03e58f Update Kotlin sample to Spring Boot 3.5.0
This updates the grpc-server-kotlin-sample to Spring Boot
3.5.0 as it was missed in the previous commit.

Signed-off-by: Mingyuan Wu <my.wu@outlook.com>
2025-05-25 17:32:52 -05:00
Chris Bono
1a7f05309b Update to Spring Boot 3.5.0
This commit updates to Spring Boot 3.5.0 and also updates
dependency versions that are specified by both spring-grpc and
spring boot as follows:

- jackson from `2.17.2` to `2.19.0`
- junit from `5.10.5` to `5.12.2`
- spring-security from `6.2.6` to `6.4.4`
- micrometer from `1.14.6` to `1.15.0`
- netty from `4.1.118.Final` to `4.1.121.Final`

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-05-23 07:17:45 +01:00
Dave Syer
81dd4bde55 Add m2e hints for IDE 2025-05-22 11:04:37 +01:00
Andrey Litvitski
f598916c19 switch maven samples to ascopes/protobuf-maven-plugin protoc plugin (#179)
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
2025-05-21 20:41:53 +01:00
Dave Syer
2edb857dfc SimpleStubFactory has to be more precise about supports() 2025-05-17 08:38:35 +01:00
Dave Syer
c6f765e507 Fix method name in BlockingV2StubFactory
Plus add a test.
2025-05-16 16:43:20 +01:00
Dave Syer
9151810532 Revert whitespace change in README 2025-05-16 11:58:08 +01:00
Dave Syer
4b288c4fb5 Remove unused property 2025-05-16 11:55:06 +01:00
Dave Syer
1ebc50736a Update Spring and Micrometer 2025-05-16 09:53:50 +01:00
Dave Syer
61a0ad9976 Tidy up dependencies in sample 2025-05-16 09:51:35 +01:00
Alexey Genus
6403bd96fa Implement CoroutineStubFactory
Signed-off-by: Alexey Genus <genus.alexey@gmail.com>
2025-05-16 09:20:44 +01:00
Dave Syer
7de96df5bd Default factory for stubs when scanning as documented
Also add failing test. Fixes #172.
2025-05-16 08:42:10 +01:00
Thomas McKernan
bd70fcd69f add GrpcExceptionHandledServerCall to catch exceptions
Signed-off-by: Thomas McKernan <tmeaglei@gmail.com>
2025-05-15 17:08:16 +01:00
Thomas McKernan
3a7bcdf4e8 fix main class
Signed-off-by: Thomas McKernan <tmeaglei@gmail.com>
2025-05-15 17:08:16 +01:00
Thomas McKernan
943c72abf5 add grpc server kotlin tests
Signed-off-by: Thomas McKernan <tmeaglei@gmail.com>
2025-05-15 17:08:16 +01:00
Dave Syer
a59a0961cc Tweak from workflows 2025-05-15 16:58:19 +01:00
Dave Syer
0720e8f647 Now we need a signing key? 2025-05-15 08:06:16 +01:00
Dave Syer
8f706665df Change contract of StubFactory
Instead of an instance method we now use a static supports() method
to determine if a factory matches a given stub type. This is better
for the lifecycle since bean definitions have to be created before
and factory can actually be created and autowired.

It's a slightly unusual contract, but it makes it much harder to
make a mistake with lifecycle, and much easier to install custom
StubFactory instances (as @Beans)
2025-05-12 17:18:59 +01:00
Dave Syer
08957115bd Support for static supports() method in StubFactory 2025-05-09 09:19:38 +01:00
Dave Syer
db2f5fa165 Only add client beans if factory supported 2025-05-08 17:43:37 +01:00
Dave Syer
031616d668 Revert pointless whitespace change 2025-05-08 16:49:07 +01:00
Dave Syer
9fe003c6d1 Allow StubFactory to be configured in application 2025-05-08 16:41:35 +01:00
Dave Syer
2d3ddfca12 Remove redundant annotation 2025-05-08 15:58:42 +01:00
Andrey Litvitski
ae2566c938 remove redundant gradle wrappers in grpc-client sample
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
2025-05-06 14:02:51 +01:00
Yanming Zhou
93d42c2b08 Polish README.md
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
2025-04-25 11:20:50 -05:00