Skip to content

Update Spring grpc to 1.1.0-SNAPSHOT#381

Merged
artembilan merged 4 commits intospring-projects:mainfrom
cppwfs:SI-grpc-client-snapshot
Mar 24, 2026
Merged

Update Spring grpc to 1.1.0-SNAPSHOT#381
artembilan merged 4 commits intospring-projects:mainfrom
cppwfs:SI-grpc-client-snapshot

Conversation

@cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Mar 23, 2026

No description provided.

@cppwfs cppwfs requested a review from artembilan March 23, 2026 14:24
build.gradle Outdated
@@ -889,14 +889,12 @@ project('grpc-client') {
dependencies {
implementation platform("org.springframework.grpc:spring-grpc-dependencies:$springGrpc")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we go with fully Spring Boot, then we don't need this to manage manually.
As well as just rely on the Spring gRPC version coming from there.
Therefore, we don't need that springGrpc variable at all.
BTW, pay attention it is not like others.
Should be springGrpcVersion.
Either way, I believe we don't need it at all.

build.gradle Outdated
implementation("com.google.protobuf:protobuf-java:$protobufVersion")

//Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this: comes transitively from the spring-boot-starter-grpc-test

- Removed redundant dependencies
- Removed unused properties
build.gradle Outdated
slf4jVersion = '2.0.17'
springCloudVersion = '2025.1.0'
springGrpc = '1.0.2'
springGrpc = '1.1.0-SNAPSHOT'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, do we still need this?
And why then it is not named as springGrpcVersion to align with the rest in this set?

private static final Log LOGGER = LogFactory.getLog(GrpcClientConfiguration.class);

@Value("${spring.grpc.client.channels.spring-integration.address}")
private String grpcServerAddress;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The @Value can simply go to the method argument of the specific bean definition.
There is no need in the dedicated property on the matter.

- localized the server port `@value`
@Bean
ManagedChannel managedChannel(GrpcChannelFactory factory) {
return factory.createChannel(this.grpcServerAddress);
ManagedChannel managedChannel(GrpcChannelFactory factory, @Value("${spring.grpc.client.channels" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this grpcServerAddress argument definition cannot be from a new line altogether?

@artembilan artembilan merged commit 78796f7 into spring-projects:main Mar 24, 2026
2 checks passed
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