From 65b494dd6d5fc6199086a857915232981fec7b90 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Wed, 22 Feb 2023 20:59:26 +0300 Subject: [PATCH] chore: use protobuf-bom to align com.google.protobuf dependencies It ensures we have compatible versions of protoc, protobuf-java, protobuf-java-util, and others. Fixes https://github.com/sigstore/sigstore-java/pull/348 Signed-off-by: Vladimir Sitnikov --- sigstore-java/build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sigstore-java/build.gradle.kts b/sigstore-java/build.gradle.kts index 1680c3ca..c493704d 100644 --- a/sigstore-java/build.gradle.kts +++ b/sigstore-java/build.gradle.kts @@ -23,7 +23,8 @@ dependencies { implementation("dev.sigstore:protobuf-specs:0.1.0") { because("It generates Sigstore Bundle file") } - implementation("com.google.protobuf:protobuf-java-util:3.21.12") { + implementation(platform("com.google.protobuf:protobuf-bom:3.22.0")) + implementation("com.google.protobuf:protobuf-java-util") { because("It converts protobuf to json") } @@ -60,7 +61,7 @@ dependencies { protobuf { protoc { - artifact = "com.google.protobuf:protoc:3.21.12" + artifact = "com.google.protobuf:protoc:3.22.0" } plugins { id("grpc") {