Commit Graph

109 Commits

Author SHA1 Message Date
Dave Syer
031616d668 Revert pointless whitespace change 2025-05-08 16:49:07 +01:00
Dave Syer
7911f3f57e Revert to snapshots 2025-04-25 15:55:29 +01:00
Dave Syer
5f7447c9db 0.8.0 release 2025-04-25 15:42:35 +01:00
Tran Ngoc Nhan
e8d109fb00 Fix typos in couple of asciidoc files
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-04-24 14:59:37 -05:00
Dave Syer
eb82d462e9 Rename explicit references to github org 2025-04-23 10:51:55 +01:00
Dave Syer
b507f29d41 Fix version in docs 2025-04-17 15:57:11 +01:00
Dave Syer
3176c7bc50 Revert to snapshots 2025-04-16 08:20:42 +01:00
Dave Syer
c357502aa4 Bump to 0.7.0 2025-04-16 07:39:50 +01:00
Nikola Kološnjaji
3e7c64c6b4 Update whats-new.adoc
Signed-off-by: Nikola Kološnjaji <nikkol1985@yahoo.com>
2025-04-10 16:09:35 +01:00
Tran Ngoc Nhan
b7d8fbe2e6 Fix client reference url
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
2025-04-07 09:35:40 +01:00
Dave Syer
61c16aadd8 Revert to snapshots 2025-04-05 10:06:52 +01:00
Dave Syer
495934ab28 Bump to 0.6.0 2025-04-04 17:54:59 +01:00
Dave Syer
d93ad2b865 Add more detail about disabling the servlet 2025-04-03 13:22:04 +01:00
Dave Syer
a3d7ba643d Split bean registration and creation for stubs
GrpcClientRegistry was responsible for both, which causes lifecycle
issues when users don't follow recommendations. This change
pushes the bean registration firmly down a level into an
ImportBeanDefinitionRegistrar. Also helps with AOT because the AOT
processor only runs the IBDR at build time.
2025-04-03 12:09:23 +01:00
Dave Syer
8b26b8f262 Rename annotation to mirror Spring HTTP interfaces 2025-03-26 08:30:01 +00:00
mackey0225
cfb14ba7e0 Fix typo in docs
Signed-off-by: mackey0225 <masaki.asano0225@gmail.com>
2025-03-24 08:31:38 +00:00
Dave Syer
ff1b8e3dfa Clarify section indents 2025-03-13 12:27:06 +00:00
Dave Syer
fe2509d1ac Revert to snapshots 2025-03-10 10:25:10 +00:00
Dave Syer
630e776158 Bump to 0.5.0 2025-03-10 09:09:29 +00:00
Chris Bono
454f0b832d Extract Boot managed deps. from spring-grpc-dependencies
This extracts the Spring Boot managed dependencies from
the spring-grpc-dependencies BOM module into a new
module (`spring-grpc-build-dependencies`) that includes
the dependencies from the BOM as well as the Spring
Boot managed dependencies.

Resolves #118

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-03-10 08:39:51 +00:00
Dave Syer
d8995bb59a Add support for @EnableGrpcClients
Automatic bean definition registration for stubs

Fixes #91
2025-03-07 08:56:30 +00:00
Chris Bono
ba5ab90807 Add Spring Boot 3.5.x support to README
Resolves #121

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-03-04 08:22:37 +00:00
Dave Syer
b423429b8f Revert to snapshot 2025-03-03 12:47:03 +00:00
Dave Syer
28a2c58f78 Bump to 0.4.0
There are some version management issues with 0.3.0 so we
need a release to catch up with changes in Boot.
2025-03-03 09:45:48 +00:00
Chris Bono
b04b6ca1ac Add ConditionalOnGrpcServerEnabled flag
This adds a coarse-grained conditional guard that will disable the
server autoconfiguration if `spring.grpc.server.enabled` is set to
false or `BindableService` class is not available on the classpath.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-24 12:42:06 +00:00
Chris Bono
2790a8a027 Add ConditionalOnGrpcClientEnabled flag
This adds a coarse-grained conditional guard that will disable the
client autoconfiguration if `spring.grpc.client.enabled` is set to
false or the `io.grpc:grpc-stub` module is not on the classpath.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-24 12:42:06 +00:00
Chris Bono
581e841550 Update docs README w/ steps on generating config props
Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-21 13:10:11 -06:00
Andrey Litvitski
fbae1c9cb6 Generate config props during doc phase (#110)
Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
2025-02-21 13:09:12 -06:00
Chris Bono
c3b7d77e41 Update description for servlet server config prop
Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-12 10:09:45 -06:00
Chris Bono
ba4427b1ae Update whats-new.adoc with fine-grained starters
Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-12 10:09:45 -06:00
Chris Bono
4c1ee098f9 Add servlet server starter module
This adds a starter module that includes the Spring gRPC server
starter and the required dependencies ((`spring-boot-starter-web`
and `jakarta-grpc-servlet`) to use the servlet container as a
gRPC server.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-12 10:09:45 -06:00
Chris Bono
2bd167e985 Add client starter module
This adds a starter module that includes the Spring gRPC
core module and the grpc-stub dependency.

Also, makes the `grpc-stub` dependency optional in Spring
gRPC core module.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-12 10:09:45 -06:00
Chris Bono
f398c85ac0 Rename security csrf property to include 'server'
This renames the `spring.grpc.security.csrf.enabled` property
to `spring.grpc.server.security.csrf.enabled` to signal that
it is a server configuration property.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-12 06:23:40 +00:00
Chris Bono
9a970cafa5 Adds missing config props metadata
This adds the following entries to additional-spring-configuration-metadata.json:

- `spring.grpc.security.csrf.enabled`
- `spring.grpc.server.servlet.enabled`

They are not present in first class `@ConfigurationProperties` so need to be
manually added.

Signed-off-by: Chris Bono <chris.bono@gmail.com>
2025-02-12 06:23:40 +00:00
Dave Syer
7003b13f23 Correct getting started guide 2025-01-31 11:10:16 +00:00
Dave Syer
ba91758dac Mention annotation as well 2025-01-29 17:08:17 +00:00
Andrey Litvitski
ae8acc52cd Fix documentation on testing server application 2025-01-28 13:37:47 +00:00
Dave Syer
c13369e6db Add some oauth2 configuration and sample code 2025-01-28 09:00:48 +00:00
Dave Syer
3ac7569d5c Add authorizeRequests() example 2025-01-24 13:10:20 +00:00
Dave Syer
be643c3627 Disable CSRF for Servlet apps by default 2025-01-24 09:06:04 +00:00
Chris Bono
495d14b48d Fix getting-started.adoc steps
Updates the fix-getting-started.adoc section of the reference
guide to remove the requirement of the "web" and "graalvm"
dependencies as the former requires other information besides
dependencies to work properly and the latter is just complication
that is not needed for a simple quick start.

See #97
2025-01-21 06:18:45 +00:00
Dave Syer
ec190ae74d Change indents 2025-01-16 09:34:35 +00:00
Dave Syer
4779cae338 Add note on local.grpc.port 2025-01-15 09:20:44 +00:00
Dave Syer
4efd23aa4e Revert to snapshots and add whats new 2025-01-15 09:07:25 +00:00
Dave Syer
406532e44e Bump to 0.3.0 for release 2025-01-15 08:46:48 +00:00
Chris Bono
87e26c378e Move named channel back into autoconfigure module
This commit moves the channel config ("NamedChannel") back to
autoconfigure module as the effort to move to core turns out to
be more trouble than it is worth at this time.

Fixes #92
2025-01-13 08:18:11 +00:00
Chris Bono
fc1de937a8 Polish "Update broken code examples in docs"
This continues the effort of the previous commit to update
broken code examples.
2025-01-12 12:14:51 -06:00
Dumildes Paulo
b861d9301b Update broken code example in docs
This commit updates a broken code example in the docs.
The breakage was introduced in commit b08e11a.
2025-01-12 12:08:04 -06:00
Dave Syer
4c4bcb4643 Add some docs on security configuration 2025-01-08 09:50:56 +00:00
Chris Bono
c936d6a876 Move NamedChannel model to core module (#89)
This commit introduces the NamedChannelRegistry which allows
moving the NamedChannel model to the core package and decouples
it from the client properties.
2025-01-06 21:19:07 -06:00