Introduce Bazel build for Gerrit >= 2.14

Change-Id: I637dc632ab206e224a4c551928910db873bf3781
diff --git a/BUCK b/BUCK
deleted file mode 100644
index 6d3f561..0000000
--- a/BUCK
+++ /dev/null
@@ -1,18 +0,0 @@
-include_defs('//bucklets/gerrit_plugin.bucklet')
-include_defs('//lib/maven.defs')
-
-gerrit_plugin(
-  name = 'audit-sl4j',
-  srcs = glob(['src/main/java/**/*.java']),
-  resources = glob(['src/main/resources/**/*']),
-  manifest_entries = [
-    'Gerrit-PluginName: audit-sl4j',
-  ],
-)
-
-# this is required for bucklets/tools/eclipse/project.py to work
-java_library(
-  name = 'classpath',
-  deps = [':audit-sl4j__plugin'],
-)
-
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..f75e83a
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,20 @@
+load("//tools/bzl:junit.bzl", "junit_tests")
+load(
+    "//tools/bzl:plugin.bzl",
+    "gerrit_plugin",
+    "PLUGIN_DEPS",
+    "PLUGIN_TEST_DEPS",
+)
+
+gerrit_plugin(
+    name = "audit-sl4j",
+    srcs = glob(["src/main/java/**/*.java"]),
+    manifest_entries = [
+        "Gerrit-PluginName: audit-sl4j",
+        "Gerrit-ReloadMode: reload",
+        "Implementation-Title: Gerrit Audit provider for SLF4J",
+        "Implementation-URL: https://gerrit.googlesource.com/plugins/audit-sl4j/",
+    ],
+    resources = glob(["src/main/resources/**/*"]),
+    deps = [ ],
+)
diff --git a/pom.xml b/pom.xml
deleted file mode 100644
index 80b219d..0000000
--- a/pom.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-
-  <artifactId>audit-sl4j</artifactId>
-  <packaging>jar</packaging>
-  <name>Gerrit Code Review - Audit Listener SL4J Plugin</name>
-  <url>http://maven.apache.org</url>
-  <version>2.12</version>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.7</source>
-          <target>1.7</target>
-          <encoding>UTF-8</encoding>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>2.4</version>
-        <configuration>
-          <archive>
-            <manifestEntries>
-              <Gerrit-Version>${project.version}</Gerrit-Version>
-              <Gerrit-ApiType>Plugin</Gerrit-ApiType>
-              <Implementation-Version>${project.version}</Implementation-Version>
-            </manifestEntries>
-          </archive>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-
-  <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-  </properties>
-
-  <dependencies>
-    <dependency>
-      <groupId>com.google.gerrit</groupId>
-      <artifactId>gerrit-plugin-api</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-  </dependencies>
-  <groupId>com.googlesource.gerrit.plugins.auditsl4j</groupId>
-</project>