diff --git a/WORKSPACE b/WORKSPACE index b5709bd63..9c65d85e8 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -19,7 +19,6 @@ load("@com_google_protobuf//:protobuf_deps.bzl", # PROTOBUF_MAVEN_ARTIFACTS variable so that the Bazel users can resolve their # dependencies through maven_install. # https://github.com/protocolbuffers/protobuf/issues/9132 -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") RULES_JVM_EXTERNAL_TAG = "4.2" RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca" http_archive( @@ -28,7 +27,9 @@ http_archive( sha256 = RULES_JVM_EXTERNAL_SHA, url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, ) + load("@rules_jvm_external//:defs.bzl", "maven_install") + maven_install( artifacts = PROTOBUF_MAVEN_ARTIFACTS, generate_compat_repositories = True,