Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fine-grained starter modules #106

Merged
merged 10 commits into from
Feb 12, 2025

Conversation

onobc
Copy link
Collaborator

@onobc onobc commented Feb 2, 2025

This PR does the following:

  • Makes grpc-netty optional and leaves the opinion to the starter
  • Cleans up dependencies so that no opinion on choice of server is made until the starter modules
  • Adds the following fine-grained starters:
    • Netty client starter
    • Netty server starter
    • Servlet server starter
  • Current coarse-grained starter points to newly added client + server starters
  • Updates Tomcat samples to use new servlet server starter

@onobc onobc force-pushed the GH-90-separate-starters branch from f22f6ad to d17b48e Compare February 2, 2025 00:33
@onobc onobc marked this pull request as draft February 2, 2025 05:19
@onobc onobc force-pushed the GH-90-separate-starters branch from 21e5dc2 to 042c21a Compare February 3, 2025 00:42
@onobc onobc changed the title Refactor starters Add client starter module Feb 3, 2025
@onobc onobc marked this pull request as ready for review February 3, 2025 01:17
@onobc onobc marked this pull request as draft February 4, 2025 02:34
@onobc onobc force-pushed the GH-90-separate-starters branch 2 times, most recently from 5956abd to 2b43eb2 Compare February 7, 2025 18:42
@onobc onobc changed the title Add client starter module Add fine-grained starter modules Feb 7, 2025
@onobc onobc requested a review from dsyer February 7, 2025 19:00
@onobc onobc marked this pull request as ready for review February 7, 2025 19:00
@dsyer
Copy link
Collaborator

dsyer commented Feb 12, 2025

This looks ready. Conflicts in the pesky config props doc. Does it make sense to turn the generation of that file into a manual step, so it doesn't pollute all our commits with bogus changes?

onobc added 10 commits February 12, 2025 09:24
Currently the spring-grpc-core imposes an opinion on Netty.
The core module should not have an opinion, but rather the
starter enforces the opinion.

Also, makes spring-grpc-core optional in the autconfigure
module as the autoconfigure will eventually be moved into
Spring Boot and at that time everything is optional.

Signed-off-by: Chris Bono <[email protected]>
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 <[email protected]>
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 <[email protected]>
The build.gradle previous use of `replacedBy` is consistent w/ what is already in the ref guide.

Signed-off-by: Chris Bono <[email protected]>
This adds a new starter module (`spring-grpc-server-spring-boot-starter`)
for gRPC Netty server and updates the current coarse-grained starter
(`spring-grpc-spring-boot-starter`) to include the newly added server
and client starter modules.

Signed-off-by: Chris Bono <[email protected]>
@onobc onobc force-pushed the GH-90-separate-starters branch from fc2e734 to ab72aa3 Compare February 12, 2025 16:04
@onobc
Copy link
Collaborator Author

onobc commented Feb 12, 2025

This looks ready. Conflicts in the pesky config props doc. Does it make sense to turn the generation of that file into a manual step, so it doesn't pollute all our commits with bogus changes?

I captured this here #109

@onobc onobc merged commit c3b7d77 into spring-projects-experimental:main Feb 12, 2025
2 checks passed
@onobc onobc deleted the GH-90-separate-starters branch February 12, 2025 16:09
@dsyer dsyer added this to the 0.4.0 milestone Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants