Configure Bomr to align gRPC dependency versions with Spring gRPC

Closes gh-50769
This commit is contained in:
Andy Wilkinson
2026-06-15 14:21:29 +01:00
parent d607b4c226
commit 4065e767bf
3 changed files with 17 additions and 1 deletions
@@ -664,6 +664,9 @@ public class Library {
}
private List<Dependency> getBomDependencies(Library manager) {
if (manager == null) {
return Collections.emptyList();
}
return manager.getGroups()
.stream()
.flatMap((group) -> group.getBoms()
+1
View File
@@ -21,6 +21,7 @@ mockitoVersion=5.23.0
nativeBuildToolsVersion=1.1.1
nullabilityPluginVersion=0.0.11
snakeYamlVersion=2.6
springGrpcVersion=1.1.0
springFrameworkVersion=7.0.8
springFramework60xVersion=6.0.23
tomcatVersion=11.0.22
+13 -1
View File
@@ -562,6 +562,12 @@ bom {
group("io.grpc") {
bom("grpc-bom")
}
alignWith {
version {
of "io.grpc:grpc-core"
from "org.springframework.grpc:spring-grpc-core"
}
}
links {
github("https://github.com/grpc/grpc-java")
docs("https://grpc.io/docs/languages/java/")
@@ -1919,6 +1925,12 @@ bom {
group("com.google.protobuf") {
bom("protobuf-bom")
}
alignWith {
property {
name "protobuf-java.version"
of "org.springframework.grpc:spring-grpc-dependencies:$springGrpcVersion"
}
}
links {
site("https://protobuf.dev")
github("https://github.com/protocolbuffers/protobuf")
@@ -2575,7 +2587,7 @@ bom {
releaseNotes("https://github.com/spring-projects/spring-graphql/releases/tag/v{version}")
}
}
library("Spring gRPC", "1.1.0") {
library("Spring gRPC", "${springGrpcVersion}") {
considerSnapshots()
group("org.springframework.grpc") {
modules = [