diff --git a/basic/grpc-client/pom.xml b/basic/grpc-client/pom.xml
index 5c4ce3fb8..3fdea18a3 100644
--- a/basic/grpc-client/pom.xml
+++ b/basic/grpc-client/pom.xml
@@ -60,15 +60,62 @@
GitHub
https://github.com/spring-projects/spring-integration-samples/issues
+
+
+ org.springframework.boot
+ spring-boot-starter-integration
+ runtime
+
+
+ org.springframework.boot
+ spring-boot-starter-grpc-client
+ runtime
+
+
+ org.springframework.integration
+ spring-integration-grpc
+ runtime
+
+
+ org.hamcrest
+ hamcrest-library
+ 2.2
+ test
+
+
+ org.mockito
+ mockito-core
+ 5.21.0
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+ org.springframework.integration
+ spring-integration-test
+ test
+
+
+ org.springframework.boot
+ spring-boot-starter-grpc-test
+ test
+
+
+ org.junit.jupiter
+ junit-jupiter-engine
+ runtime
+
+
+ org.junit.platform
+ junit-platform-launcher
+ runtime
+
+
-
- org.springframework.grpc
- spring-grpc-dependencies
- 1.0.2
- pom
- import
-
org.springframework.integration
spring-integration-jdbc
@@ -328,71 +375,6 @@
-
-
- org.springframework.boot
- spring-boot-starter-integration
- runtime
-
-
- org.springframework.grpc
- spring-grpc-client-spring-boot-starter
- runtime
-
-
- org.springframework.integration
- spring-integration-grpc
- runtime
-
-
- com.google.protobuf
- protobuf-java
- 4.29.4
- runtime
-
-
- org.hamcrest
- hamcrest-library
- 2.2
- test
-
-
- org.mockito
- mockito-core
- 5.21.0
- test
-
-
- org.junit.jupiter
- junit-jupiter-api
- test
-
-
- org.springframework.integration
- spring-integration-test
- test
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
- org.springframework.grpc
- spring-grpc-test
- test
-
-
- org.junit.jupiter
- junit-jupiter-engine
- runtime
-
-
- org.junit.platform
- junit-platform-launcher
- runtime
-
-
17
diff --git a/basic/grpc-client/src/main/java/org/springframework/integration/samples/grpc/client/GrpcClientConfiguration.java b/basic/grpc-client/src/main/java/org/springframework/integration/samples/grpc/client/GrpcClientConfiguration.java
index 9e109ce05..13059cfa4 100644
--- a/basic/grpc-client/src/main/java/org/springframework/integration/samples/grpc/client/GrpcClientConfiguration.java
+++ b/basic/grpc-client/src/main/java/org/springframework/integration/samples/grpc/client/GrpcClientConfiguration.java
@@ -23,6 +23,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -47,8 +48,9 @@ public class GrpcClientConfiguration {
private static final Log LOGGER = LogFactory.getLog(GrpcClientConfiguration.class);
@Bean
- ManagedChannel managedChannel(GrpcChannelFactory factory) {
- return factory.createChannel("spring-integration");
+ ManagedChannel managedChannel(GrpcChannelFactory factory,
+ @Value("${spring.grpc.client.channels.spring-integration.address}") String grpcServerAddress) {
+ return factory.createChannel(grpcServerAddress);
}
/**
diff --git a/basic/grpc-client/src/test/java/org/springframework/integration/samples/grpc/client/GrpcClientTests.java b/basic/grpc-client/src/test/java/org/springframework/integration/samples/grpc/client/GrpcClientTests.java
index 2d479852b..721ac33ed 100644
--- a/basic/grpc-client/src/test/java/org/springframework/integration/samples/grpc/client/GrpcClientTests.java
+++ b/basic/grpc-client/src/test/java/org/springframework/integration/samples/grpc/client/GrpcClientTests.java
@@ -37,8 +37,8 @@
* @author Glenn Renfro
*/
@SpringBootTest(properties = {
- "spring.grpc.test.inprocess.enabled=true",
- "spring.grpc.test.inprocess.exclusive=true"
+ "spring.grpc.server.inprocess.name=test",
+ "spring.grpc.client.channels.spring-integration.address=in-process:test"
})
@DirtiesContext
@ExtendWith(OutputCaptureExtension.class)
diff --git a/build.gradle b/build.gradle
index f33135521..252742506 100644
--- a/build.gradle
+++ b/build.gradle
@@ -330,7 +330,6 @@ subprojects { subproject ->
protobufVersion = '4.29.4'
slf4jVersion = '2.0.17'
springCloudVersion = '2025.1.0'
- springGrpc = '1.0.2'
springIntegrationVersion = '7.1.0-SNAPSHOT'
set('spring-integration.version', "$springIntegrationVersion")
springIntegrationSocialTwiterVersion = '1.0.1.BUILD-SNAPSHOT'
@@ -887,16 +886,12 @@ project('grpc-client') {
apply plugin: 'com.google.protobuf'
dependencies {
- implementation platform("org.springframework.grpc:spring-grpc-dependencies:$springGrpc")
implementation 'org.springframework.boot:spring-boot-starter-integration'
- implementation "org.springframework.grpc:spring-grpc-client-spring-boot-starter"
+ implementation "org.springframework.boot:spring-boot-starter-grpc-client"
implementation 'org.springframework.integration:spring-integration-grpc'
- implementation("com.google.protobuf:protobuf-java:$protobufVersion")
-
//Test
- testImplementation 'org.springframework.boot:spring-boot-starter-test'
- testImplementation "org.springframework.grpc:spring-grpc-test"
+ testImplementation "org.springframework.boot:spring-boot-starter-grpc-test"
configurations {
testRuntimeOnly.exclude group: 'io.grpc', module: 'grpc-netty'