Skip to content

Commit 14a3286

Browse files
authored
Bump to com.google.protobuf:protobuf-java:4.28.2 (#1624)
Part of #1482. Bumps every Scala version up to use protobuf-java:4.28.2, to preemptively avoid the following error produced by upcoming Scalafmt updates: ```txt $ bazel test --repo_env=SCALA_VERSION=2.11.12 //test/scalafmt/... INFO: Analyzed 9 targets (80 packages loaded, 3307 targets configured). ERROR: .../test/scalafmt/BUILD:43:20: ScalaFmt test/scalafmt/test/scalafmt/formatted/formatted-test.scala.fmt.output failed: Worker process did not return a WorkResponse: ---8<---8<--- Start of log, file at .../bazel-workers/worker-134-ScalaFmt.log ---8<---8<--- Exception in thread "main" java.lang.NoSuchMethodError: 'boolean com.google.protobuf.GeneratedMessageV3.isStringEmpty(java.lang.Object)' [ ...snip... ] ``` This issue seemed to suggest a library bump may fix it, and it did: - protocolbuffers/protobuf#9236 Fortunately, even though this is a major version bump from 3.10.0 to 4.28.2, there were no compatibility issues, per: > Protobuf major version releases may also be backwards-compatible with > the last release of the previous major version. See the release notice > for more details. > > - https://github.com/protocolbuffers/protobuf/tree/main/java#compatibility-notice
1 parent 1aeaad4 commit 14a3286

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

third_party/repositories/scala_2_11.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ artifacts = {
288288
],
289289
},
290290
"com_google_protobuf_protobuf_java": {
291-
"artifact": "com.google.protobuf:protobuf-java:3.8.0",
292-
"sha256": "94ba90a869ddad07eb49afaa8f39e676c2554b5b1c417ad9e1188257e79be60f",
291+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
292+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
293293
},
294294
"com_geirsson_metaconfig_core": {
295295
"artifact": "com.geirsson:metaconfig-core_2.11:0.9.10",

third_party/repositories/scala_2_12.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ artifacts = {
285285
"sha256": "52a8e02b1c90de686994a5f9818987cec44c5df97118e4b59fe2414227099c6a",
286286
},
287287
"com_google_protobuf_protobuf_java": {
288-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
289-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
288+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
289+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
290290
},
291291
"com_geirsson_metaconfig_core": {
292292
"artifact": "com.geirsson:metaconfig-core_2.12:0.9.14",

third_party/repositories/scala_2_13.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ artifacts = {
292292
"sha256": "a639a90e2d21bbafd8a5e213c65442aad200ee086951605cbda8835bc6ef11d3",
293293
},
294294
"com_google_protobuf_protobuf_java": {
295-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
296-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
295+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
296+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
297297
},
298298
"com_geirsson_metaconfig_core": {
299299
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

third_party/repositories/scala_3_1.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ artifacts = {
272272
"sha256": "a639a90e2d21bbafd8a5e213c65442aad200ee086951605cbda8835bc6ef11d3",
273273
},
274274
"com_google_protobuf_protobuf_java": {
275-
"artifact": "com.google.protobuf:protobuf-java:3.7.0",
276-
"sha256": "dc7f93e3a3dc2c11be5ba9672af3e26410f0a3289312dbf2260d4d8a0c711a51",
275+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
276+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
277277
},
278278
"com_geirsson_metaconfig_core": {
279279
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

third_party/repositories/scala_3_2.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ artifacts = {
272272
"sha256": "a639a90e2d21bbafd8a5e213c65442aad200ee086951605cbda8835bc6ef11d3",
273273
},
274274
"com_google_protobuf_protobuf_java": {
275-
"artifact": "com.google.protobuf:protobuf-java:3.7.0",
276-
"sha256": "dc7f93e3a3dc2c11be5ba9672af3e26410f0a3289312dbf2260d4d8a0c711a51",
275+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
276+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
277277
},
278278
"com_geirsson_metaconfig_core": {
279279
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

third_party/repositories/scala_3_3.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ artifacts = {
272272
"sha256": "a639a90e2d21bbafd8a5e213c65442aad200ee086951605cbda8835bc6ef11d3",
273273
},
274274
"com_google_protobuf_protobuf_java": {
275-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
276-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
275+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
276+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
277277
},
278278
"com_geirsson_metaconfig_core": {
279279
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

third_party/repositories/scala_3_4.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ artifacts = {
273273
"sha256": "a639a90e2d21bbafd8a5e213c65442aad200ee086951605cbda8835bc6ef11d3",
274274
},
275275
"com_google_protobuf_protobuf_java": {
276-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
277-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
276+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
277+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
278278
},
279279
"com_geirsson_metaconfig_core": {
280280
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

third_party/repositories/scala_3_5.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ artifacts = {
273273
"sha256": "a639a90e2d21bbafd8a5e213c65442aad200ee086951605cbda8835bc6ef11d3",
274274
},
275275
"com_google_protobuf_protobuf_java": {
276-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
277-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
276+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
277+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
278278
},
279279
"com_geirsson_metaconfig_core": {
280280
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

0 commit comments

Comments
 (0)