Switch to bazlets hosted on gerrit-review

Change-Id: I1bedf3f496bc08a59a226acc0f207cb390ad7a80
diff --git a/BUILD b/BUILD
index 837b5e2..61d484f 100644
--- a/BUILD
+++ b/BUILD
@@ -12,7 +12,7 @@
     ],
     resources = glob(["src/main/resources/**/*"]),
     deps = [
-        "//external:commons-codec-neverlink",
-        "//external:scribe",
+        "@commons_codec//jar:neverlink",
+        "@scribe//jar",
     ],
 )
diff --git a/WORKSPACE b/WORKSPACE
index d4ae2ea..4aacb00 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,45 +1,30 @@
 workspace(name = "com_github_davido_gerrit_oauth_provider")
 
-git_repository(
-    name = "com_github_davido_bazlets",
-    #commit = "v0.1",
-    commit = "85d0949941406d1003f801c3981977a1d7aad518",
-    remote = "https://github.com/davido/bazlets.git",
-)
+load("//:bazlets.bzl", "load_bazlets")
 
-#local_repository(
-#  name = "com_github_davido_bazlets",
-#  path = "/home/davido/projects/bazlets",
-#)
+load_bazlets(
+    commit = "3bec81727c69207e591ae1761d5a78d8ec418a0b",
+#    local_path = "/home/davido/projects/bazlets",
+)
 
 # Release Plugin API
 load(
-    "@com_github_davido_bazlets//:gerrit_api.bzl",
+    "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl",
     "gerrit_api",
 )
 
 gerrit_api()
 
-load("@com_github_davido_bazlets//tools:maven_jar.bzl", "maven_jar")
+load("@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl", "maven_jar")
 
 maven_jar(
-    name = "scribe_artifact",
+    name = "scribe",
     artifact = "org.scribe:scribe:1.3.7",
     sha1 = "583921bed46635d9f529ef5f14f7c9e83367bc6e",
 )
 
-bind(
-    name = "scribe",
-    actual = "@scribe_artifact//jar",
-)
-
 maven_jar(
     name = "commons_codec",
     artifact = "commons-codec:commons-codec:1.4",
     sha1 = "4216af16d38465bbab0f3dff8efa14204f7a399a",
 )
-
-bind(
-    name = "commons-codec-neverlink",
-    actual = "@commons_codec//jar:neverlink",
-)
diff --git a/bazlets.bzl b/bazlets.bzl
new file mode 100644
index 0000000..e14e488
--- /dev/null
+++ b/bazlets.bzl
@@ -0,0 +1,17 @@
+NAME = "com_googlesource_gerrit_bazlets"
+
+def load_bazlets(
+    commit,
+    local_path = None
+  ):
+  if not local_path:
+      native.git_repository(
+          name = NAME,
+          remote = "https://gerrit.googlesource.com/bazlets",
+          commit = commit,
+      )
+  else:
+      native.local_repository(
+          name = NAME,
+          path = local_path,
+      )
diff --git a/tools/bzl/plugin.bzl b/tools/bzl/plugin.bzl
index 3cdc07a..8427958 100644
--- a/tools/bzl/plugin.bzl
+++ b/tools/bzl/plugin.bzl
@@ -1,2 +1,2 @@
-load("@com_github_davido_bazlets//:gerrit_plugin.bzl",
+load("@com_googlesource_gerrit_bazlets//:gerrit_plugin.bzl",
      "gerrit_plugin")
diff --git a/tools/eclipse/BUILD b/tools/eclipse/BUILD
index 27bc849..ba835b7 100644
--- a/tools/eclipse/BUILD
+++ b/tools/eclipse/BUILD
@@ -1,5 +1,5 @@
-load("@com_github_davido_bazlets//tools:commons.bzl", "PLUGIN_DEPS")
-load("@com_github_davido_bazlets//tools:classpath.bzl", "classpath_collector")
+load("@com_googlesource_gerrit_bazlets//tools:commons.bzl", "PLUGIN_DEPS")
+load("@com_googlesource_gerrit_bazlets//tools:classpath.bzl", "classpath_collector")
 
 java_library(
     name = "classpath",
diff --git a/version.bzl b/version.bzl
deleted file mode 100644
index 7d50452..0000000
--- a/version.bzl
+++ /dev/null
@@ -1 +0,0 @@
-PLUGIN_VERSION = "2.13.2"