@@ -47,9 +47,9 @@ http_archive(
4747
4848http_archive (
4949 name = "com_google_protobuf" ,
50- sha256 = "9111bf0b542b631165fadbd80aa60e7fb25b25311c532139ed2089d76ddf6dd7 " ,
51- strip_prefix = "protobuf-3.18 .1" ,
52- urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.18 .1.tar.gz" ],
50+ sha256 = "8b28fdd45bab62d15db232ec404248901842e5340299a57765e48abe8a80d930 " ,
51+ strip_prefix = "protobuf-3.20 .1" ,
52+ urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.20 .1.tar.gz" ],
5353)
5454
5555load ("@com_google_protobuf//:protobuf_deps.bzl" , "protobuf_deps" )
@@ -185,6 +185,32 @@ apple_support_dependencies()
185185##############################################################################
186186# Java
187187##############################################################################
188+ load ("@com_google_protobuf//:protobuf_deps.bzl" , "PROTOBUF_MAVEN_ARTIFACTS" )
189+
190+ # Starting in protobuf 3.19, protobuf project started to provide
191+ # PROTOBUF_MAVEN_ARTIFACTS variable so that Bazel users can resolve their
192+ # dependencies through maven_install.
193+ # https://github.com/protocolbuffers/protobuf/issues/9132
194+ RULES_JVM_EXTERNAL_TAG = "4.2"
195+ RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca"
196+
197+ http_archive (
198+ name = "rules_jvm_external" ,
199+ strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG ,
200+ sha256 = RULES_JVM_EXTERNAL_SHA ,
201+ url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG ,
202+ )
203+
204+ load ("@rules_jvm_external//:defs.bzl" , "maven_install" )
205+
206+ maven_install (
207+ artifacts = PROTOBUF_MAVEN_ARTIFACTS ,
208+ generate_compat_repositories = True ,
209+ repositories = [
210+ "https://repo.maven.apache.org/maven2/" ,
211+ ],
212+ )
213+
188214_gax_java_version = "2.12.2"
189215
190216http_archive (
0 commit comments