Add missing gRPC test starters

Add `spring-boot-starter-grpc-client-test` and
`spring-boot-starter-grpc-server-test` to align with the client
and server modules. Also refine dependencies for common test
usage patterns.

`spring-boot-starter-grpc-server-test` has been removed.

Closes gh-49690
This commit is contained in:
Phillip Webb
2026-04-21 20:01:05 -07:00
parent 752be34e1c
commit 9bf698d564
8 changed files with 40 additions and 11 deletions
@@ -2296,8 +2296,9 @@ bom {
"spring-boot-starter-graphql",
"spring-boot-starter-graphql-test",
"spring-boot-starter-grpc-client",
"spring-boot-starter-grpc-client-test",
"spring-boot-starter-grpc-server",
"spring-boot-starter-grpc-test",
"spring-boot-starter-grpc-server-test",
"spring-boot-starter-groovy-templates",
"spring-boot-starter-groovy-templates-test",
"spring-boot-starter-gson",
+2 -1
View File
@@ -271,8 +271,9 @@ include "starter:spring-boot-starter-freemarker-test"
include "starter:spring-boot-starter-graphql"
include "starter:spring-boot-starter-graphql-test"
include "starter:spring-boot-starter-grpc-client"
include "starter:spring-boot-starter-grpc-client-test"
include "starter:spring-boot-starter-grpc-server"
include "starter:spring-boot-starter-grpc-test"
include "starter:spring-boot-starter-grpc-server-test"
include "starter:spring-boot-starter-groovy-templates"
include "starter:spring-boot-starter-groovy-templates-test"
include "starter:spring-boot-starter-gson"
@@ -25,7 +25,7 @@ description = "Spring Boot gRPC client and test smoke test"
dependencies {
implementation(project(":starter:spring-boot-starter-grpc-client"))
testImplementation(project(":starter:spring-boot-starter-grpc-test"))
testImplementation(project(":starter:spring-boot-starter-grpc-client-test"))
}
def dependenciesBom = project(":platform:spring-boot-dependencies").extensions.getByName("bom")
@@ -27,10 +27,8 @@ dependencies {
implementation(project(":starter:spring-boot-starter-oauth2-resource-server"))
implementation(project(":starter:spring-boot-starter-grpc-server"))
testImplementation(project(":starter:spring-boot-starter-grpc-client"))
testImplementation(project(":starter:spring-boot-starter-grpc-test"))
testImplementation(project(":starter:spring-boot-starter-grpc-server-test"))
testImplementation(project(":starter:spring-boot-starter-oauth2-client"))
testImplementation(project(":starter:spring-boot-starter-test"))
}
def dependenciesBom = project(":platform:spring-boot-dependencies").extensions.getByName("bom")
@@ -26,9 +26,7 @@ dependencies {
implementation(project(":starter:spring-boot-starter-grpc-server"))
implementation(project(":starter:spring-boot-starter-security"))
testImplementation(project(":starter:spring-boot-starter-grpc-client"))
testImplementation(project(":starter:spring-boot-starter-grpc-test"))
testImplementation(project(":starter:spring-boot-starter-test"))
testImplementation(project(":starter:spring-boot-starter-grpc-server-test"))
}
def dependenciesBom = project(":platform:spring-boot-dependencies").extensions.getByName("bom")
@@ -25,7 +25,7 @@ description = "Spring Boot gRPC server and test smoke test"
dependencies {
implementation(project(":starter:spring-boot-starter-grpc-server"))
testImplementation(project(":starter:spring-boot-starter-grpc-test"))
testImplementation(project(":starter:spring-boot-starter-grpc-server-test"))
}
def dependenciesBom = project(":platform:spring-boot-dependencies").extensions.getByName("bom")
@@ -18,11 +18,12 @@ plugins {
id "org.springframework.boot.starter"
}
description = "Starter for testing gRPC"
description = "Starter for testing gRPC client"
dependencies {
api(project(":starter:spring-boot-starter-test"))
api(project(":module:spring-boot-grpc-server"))
api(project(":module:spring-boot-grpc-test"))
api("io.grpc:grpc-inprocess")
api("io.grpc:grpc-stub")
@@ -0,0 +1,30 @@
/*
* Copyright 2012-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id "org.springframework.boot.starter"
}
description = "Starter for testing gRPC server"
dependencies {
api(project(":starter:spring-boot-starter-test"))
api(project(":module:spring-boot-grpc-client"))
api(project(":module:spring-boot-grpc-test"))
api("io.grpc:grpc-inprocess")
api("io.grpc:grpc-stub")
}