Merge branch 'stable-2.16'

* stable-2.16:
  Stop using native.http_archive and native.http_file
  Bazel: Update rules_closure to make it forward compatible
  Upgrade Gerrit API to 2.16.2
  Update Gerrit API to 2.16.1

Change-Id: Iaf230df37bbcaadf8696d365f4d426cccc35d3ca
diff --git a/gerrit_api.bzl b/gerrit_api.bzl
index 23d09c1..1f0bae3 100644
--- a/gerrit_api.bzl
+++ b/gerrit_api.bzl
@@ -5,7 +5,7 @@
 gerrit_api is rule for fetching Gerrit plugin API using Bazel.
 """
 
-VER = "2.16"
+VER = "2.16.2"
 
 def gerrit_api():
     bouncycastle_repos()
@@ -13,12 +13,12 @@
     maven_jar(
         name = "gerrit_plugin_api",
         artifact = "com.google.gerrit:gerrit-plugin-api:" + VER,
-        sha1 = "e660d825c7b6adf9f6ca14d1c219c49418854a97",
+        sha1 = "8957246a676741a3738e3eff7a42e442e8cc8a13",
     )
     maven_jar(
         name = "gerrit_acceptance_framework",
         artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER,
-        sha1 = "62b15a4e52b699d760499ab0ccd161f60a03f547",
+        sha1 = "09c73f0a6608056913754263d3c105e9ec1670b4",
     )
     native.bind(
         name = "gerrit-plugin-api",
diff --git a/gerrit_polymer.bzl b/gerrit_polymer.bzl
index 1f490cc..edcac26 100644
--- a/gerrit_polymer.bzl
+++ b/gerrit_polymer.bzl
@@ -1,17 +1,17 @@
 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
 
 def gerrit_polymer():
-    native.http_archive(
+    http_archive(
         name = "io_bazel_rules_closure",
-        sha256 = "4dd84dd2bdd6c9f56cb5a475d504ea31d199c34309e202e9379501d01c3067e5",
-        strip_prefix = "rules_closure-3103a773820b59b76345f94c231cb213e0d404e2",
-        urls = ["https://github.com/bazelbuild/rules_closure/archive/3103a773820b59b76345f94c231cb213e0d404e2.tar.gz"],
+        sha256 = "d797d2410358bc8a4ceb1d26319b899acf4201f39cf2a99eb4b57212c01d76c7",
+        strip_prefix = "rules_closure-a34455e0c76769df13d25b67851252559fe7f83d",
+        urls = ["https://github.com/bazelbuild/rules_closure/archive/a34455e0c76769df13d25b67851252559fe7f83d.tar.gz"],
     )
 
     # File is specific to Polymer and copied from the Closure Github -- should be
     # synced any time there are major changes to Polymer.
     # https://github.com/google/closure-compiler/blob/master/contrib/externs/polymer-1.0.js
-    native.http_file(
+    http_file(
         name = "polymer_closure",
         sha256 = "5a589bdba674e1fec7188e9251c8624ebf2d4d969beb6635f9148f420d1e08b1",
         urls = ["https://raw.githubusercontent.com/google/closure-compiler/775609aad61e14aef289ebec4bfc09ad88877f9e/contrib/externs/polymer-1.0.js"],