Support building with Bazel
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..325c6ab
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,16 @@
+load("//tools/bzl:plugin.bzl", "gerrit_plugin")
+
+gerrit_plugin(
+    name = "metrics-reporter-prometheus",
+    srcs = glob(["src/main/java/**/*.java"]),
+    manifest_entries = [
+        "Gerrit-PluginName: metrics-reporter-prometheus",
+    ],
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [
+        "@prometheus_simpleclient//jar",
+        "@prometheus_simpleclient_common//jar",
+        "@prometheus_simpleclient_servlet//jar",
+        "@metrics_prometheus//jar",
+    ],
+)
diff --git a/external_plugin_deps.bzl b/external_plugin_deps.bzl
new file mode 100644
index 0000000..2e2f69c
--- /dev/null
+++ b/external_plugin_deps.bzl
@@ -0,0 +1,23 @@
+load("//tools/bzl:maven_jar.bzl", "maven_jar")
+
+def external_plugin_deps():
+  maven_jar(
+    name = 'prometheus_simpleclient',
+    artifact = 'io.prometheus:simpleclient:0.2.0',
+    sha1 = 'be8de6a5a01f25074be3b27a8db4448c9cce0168',
+  )
+  maven_jar(
+    name = 'prometheus_simpleclient_common',
+    artifact = 'io.prometheus:simpleclient_common:0.2.0',
+    sha1 = '42d513358b26ae44137c620fa517d37b5e707ae1',
+  )
+  maven_jar(
+    name = 'prometheus_simpleclient_servlet',
+    artifact = 'io.prometheus:simpleclient_servlet:0.2.0',
+    sha1 = '98b6235fe4277ce0eb08ba8d171e57da9298a6f7',
+  )
+  maven_jar(
+    name = 'metrics_prometheus',
+    artifact = 'io.prometheus:simpleclient_dropwizard:0.2.0',
+    sha1 = '7a73c8db679de5193728fdc205d9734dbdd3d9f9',
+  )