Merge branch 'stable-3.0' into stable-3.1

* stable-3.0:
  Upgrade rules_closure to latest version
  Use now mandatory https protocol for MAVEN_CENTRAL

Change-Id: I912a3c34c54e21ade3451fa54f53322dcd1ce4cb
diff --git a/gerrit_polymer.bzl b/gerrit_polymer.bzl
index aaf1d4a..2d019d2 100644
--- a/gerrit_polymer.bzl
+++ b/gerrit_polymer.bzl
@@ -3,9 +3,9 @@
 def gerrit_polymer():
     http_archive(
         name = "io_bazel_rules_closure",
-        sha256 = "75c58680af5f7b938ce9fe2abe8ecd9d24c698d160c0b71a945bd100fa77632b",
-        strip_prefix = "rules_closure-10cb1a78bd6cc8927eb39c2644c0369934f4aed6",
-        urls = ["https://github.com/bazelbuild/rules_closure/archive/10cb1a78bd6cc8927eb39c2644c0369934f4aed6.tar.gz"],
+        sha256 = "03c3b16f205085817fd89cfdcb2220a0138647ee7992be9cef291b069dd90301",
+        strip_prefix = "rules_closure-196a45f0ede2faec11dcc6c60fbc5e7471f4bd58",
+        urls = ["https://github.com/bazelbuild/rules_closure/archive/196a45f0ede2faec11dcc6c60fbc5e7471f4bd58.tar.gz"],
     )
 
     # File is specific to Polymer and copied from the Closure Github -- should be
diff --git a/tools/js.bzl b/tools/js.bzl
index decb331..21cfa73 100644
--- a/tools/js.bzl
+++ b/tools/js.bzl
@@ -20,9 +20,9 @@
     dest = ctx.path(base)
     repository = ctx.attr.repository
     if repository == GERRIT:
-        url = "http://gerrit-maven.storage.googleapis.com/npm-packages/%s" % filename
+        url = "https://gerrit-maven.storage.googleapis.com/npm-packages/%s" % filename
     elif repository == NPMJS:
-        url = "http://registry.npmjs.org/%s/-/%s" % (name, filename)
+        url = "https://registry.npmjs.org/%s/-/%s" % (name, filename)
     else:
         fail("repository %s not in {%s,%s}" % (repository, GERRIT, NPMJS))
 
diff --git a/tools/util.py b/tools/util.py
index e8182ed..1d92528 100644
--- a/tools/util.py
+++ b/tools/util.py
@@ -15,9 +15,9 @@
 from os import path
 
 REPO_ROOTS = {
-  'GERRIT': 'http://gerrit-maven.storage.googleapis.com',
+  'GERRIT': 'https://gerrit-maven.storage.googleapis.com',
   'GERRIT_API': 'https://gerrit-api.commondatastorage.googleapis.com/release',
-  'MAVEN_CENTRAL': 'http://repo1.maven.org/maven2',
+  'MAVEN_CENTRAL': 'https://repo1.maven.org/maven2',
   'MAVEN_LOCAL': 'file://' + path.expanduser('~/.m2/repository'),
   'MAVEN_SNAPSHOT': 'https://oss.sonatype.org/content/repositories/snapshots',
 }