Skip to content

Commit 2ca3aeb

Browse files
committed
Bump to com.google.protobuf:protobuf-java:4.28.2
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 cd22d88 commit 2ca3aeb

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

third_party/repositories/scala_2_11.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ artifacts = {
213213
],
214214
},
215215
"com_google_protobuf_protobuf_java": {
216-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
217-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
216+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
217+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
218218
},
219219
"com_geirsson_metaconfig_core": {
220220
"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
@@ -210,8 +210,8 @@ artifacts = {
210210
"sha256": "94f9c383f4d9b8c382de243b0968c02a232be77ff0f1c6677d042717157295ea",
211211
},
212212
"com_google_protobuf_protobuf_java": {
213-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
214-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
213+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
214+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
215215
},
216216
"com_geirsson_metaconfig_core": {
217217
"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
@@ -215,8 +215,8 @@ artifacts = {
215215
"sha256": "b8f816ad81e3546e4a75cdc74d322f02e6d84fbfa5eb1ea5e1eca666cede524c",
216216
},
217217
"com_google_protobuf_protobuf_java": {
218-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
219-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
218+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
219+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
220220
},
221221
"com_geirsson_metaconfig_core": {
222222
"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
@@ -229,8 +229,8 @@ artifacts = {
229229
"sha256": "b8f816ad81e3546e4a75cdc74d322f02e6d84fbfa5eb1ea5e1eca666cede524c",
230230
},
231231
"com_google_protobuf_protobuf_java": {
232-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
233-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
232+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
233+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
234234
},
235235
"com_geirsson_metaconfig_core": {
236236
"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
@@ -229,8 +229,8 @@ artifacts = {
229229
"sha256": "b8f816ad81e3546e4a75cdc74d322f02e6d84fbfa5eb1ea5e1eca666cede524c",
230230
},
231231
"com_google_protobuf_protobuf_java": {
232-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
233-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
232+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
233+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
234234
},
235235
"com_geirsson_metaconfig_core": {
236236
"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
@@ -227,8 +227,8 @@ artifacts = {
227227
"sha256": "b8f816ad81e3546e4a75cdc74d322f02e6d84fbfa5eb1ea5e1eca666cede524c",
228228
},
229229
"com_google_protobuf_protobuf_java": {
230-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
231-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
230+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
231+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
232232
},
233233
"com_geirsson_metaconfig_core": {
234234
"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
@@ -227,8 +227,8 @@ artifacts = {
227227
"sha256": "b8f816ad81e3546e4a75cdc74d322f02e6d84fbfa5eb1ea5e1eca666cede524c",
228228
},
229229
"com_google_protobuf_protobuf_java": {
230-
"artifact": "com.google.protobuf:protobuf-java:3.10.0",
231-
"sha256": "161d7d61a8cb3970891c299578702fd079646e032329d6c2cabf998d191437c9",
230+
"artifact": "com.google.protobuf:protobuf-java:4.28.2",
231+
"sha256": "707bccf406f4fc61b841d4700daa8d3e84db8ab499ef3481a060fa6a0f06e627",
232232
},
233233
"com_geirsson_metaconfig_core": {
234234
"artifact": "com.geirsson:metaconfig-core_2.13:0.9.14",

0 commit comments

Comments
 (0)