Stop overriding protobuf dependency version.
@@ -10,7 +10,6 @@ def setup_j2cl_workspace():
versions.check("0.24.0") # The version J2CL currently have a CI setup for.
rules_closure_dependencies(
- omit_com_google_protobuf = True,
omit_com_google_auto_common = True,
)
@@ -173,23 +172,20 @@ filegroup(
)''',
)
- # proto_library and java_proto_library rules implicitly depend on
- # @com_google_protobuf for protoc and proto runtimes.
- http_archive(
- name = "com_google_protobuf",
- strip_prefix = "protobuf-3.6.1.3",
- urls = ["https://github.com/google/protobuf/archive/v3.6.1.3.zip"],
- sha256 = "9510dd2afc29e7245e9e884336f848c8a6600a14ae726adb6befdb4f786f0be2",
- )
-
- # needed for protobuf
+ # Required by protobuf_java_util
native.bind(
name = "guava",
actual = "@com_google_guava",
)
- # needed for protobuf
+ # Required by protobuf_java_util
native.bind(
name = "gson",
actual = "@com_google_code_gson",
)
+
+ # Required by protobuf_java_util
+ native.bind(
+ name = "error_prone_annotations",
+ actual = "@com_google_errorprone_error_prone_annotations",
+ )
