Remove buck build
Change-Id: I13a3f6269bd198fcf81e4f72bb99b12cc0ce5228
diff --git a/.buckconfig b/.buckconfig
deleted file mode 100644
index 5238f0d..0000000
--- a/.buckconfig
+++ /dev/null
@@ -1,13 +0,0 @@
-[alias]
- rabbitmq = //:rabbitmq
- plugin = //:rabbitmq
-
-[java]
- src_roots = java, resources
-
-[project]
- ignore = .git
-
-[cache]
- mode = dir
- dir = buck-out/cache
diff --git a/BUCK b/BUCK
deleted file mode 100644
index f2901e3..0000000
--- a/BUCK
+++ /dev/null
@@ -1,62 +0,0 @@
-include_defs('//bucklets/gerrit_plugin.bucklet')
-include_defs('//bucklets/maven_jar.bucklet')
-
-gerrit_plugin(
- name = 'rabbitmq',
- srcs = glob(['src/main/java/**/*.java']),
- resources = glob(['src/main/resources/**/*']),
- manifest_entries = [
- 'Gerrit-PluginName: rabbitmq',
- 'Gerrit-Module: com.googlesource.gerrit.plugins.rabbitmq.Module',
- 'Implementation-Title: Gerrit rabbitmq plugin',
- 'Implementation-URL: https://github.com/rinrinne/gerrit-rabbitmq-plugin',
- 'Implementation-Vendor: rinrinne',
- ],
- deps = [
- ':amqp-client',
- ':commons-io',
- ':guice-multibindings',
- ],
- provided_deps = [
- '//lib:gson',
- '//lib/commons:codec',
- '//lib/commons:lang',
- ],
-)
-
-java_library(
- name = 'classpath',
- deps = [':rabbitmq__plugin'],
-)
-
-maven_jar(
- name = 'amqp-client',
- id = 'com.rabbitmq:amqp-client:3.5.2',
- sha1 = '8d10edd29e08f78349bd1da9d18f81c9f8b90567',
- license = 'MPL1.1',
- exclude_java_sources = True,
- visibility = [],
-)
-
-maven_jar(
- name = 'commons-io',
- id = 'commons-io:commons-io:1.4',
- sha1 = 'a8762d07e76cfde2395257a5da47ba7c1dbd3dce',
- license = 'Apache2.0',
-)
-
-maven_jar(
- name = 'guice-multibindings',
- id = 'com.google.inject.extensions:guice-multibindings:4.0',
- sha1 = 'f4509545b4470bbcc865aa500ad6fef2e97d28bf',
- license = 'Apache2.0',
- exclude_java_sources = True,
- exclude = [
- 'META-INF/DEPENDENCIES',
- 'META-INF/LICENSE',
- 'META-INF/NOTICE',
- 'META-INF/maven/com.google.guava/guava/pom.properties',
- 'META-INF/maven/com.google.guava/guava/pom.xml',
- ],
- visibility = [],
-)
diff --git a/README.md b/README.md
index 6b8c33f..6ca70b6 100644
--- a/README.md
+++ b/README.md
@@ -15,14 +15,14 @@
This can publish gerrit events to message queue provided by RabbitMQ.
Published events are the same as Gerrit stream evnets.
-This plugin works on Gerrit 2.8 - 2.10.
+This plugin works on Gerrit 2.8 - 2.13.
Environments
---------------------
* `linux`
-* `java-1.7`
-* `Buck`
+* `java-1.8`
+* `Bazel`
Build
---------------------
@@ -31,11 +31,11 @@
tree, and issue the command:
- buck build plugins/rabbitmq
+ bazel build plugins/rabbitmq
The output is created in
- buck-out/gen/plugins/rabbitmq/rabbitmq.jar
+ bazel-genfiles/plugins/rabbitmq/rabbitmq.jar
Reference
---------------------
diff --git a/lib/BUCK b/lib/BUCK
deleted file mode 100644
index 06f7c02..0000000
--- a/lib/BUCK
+++ /dev/null
@@ -1,8 +0,0 @@
-include_defs('//bucklets/maven_jar.bucklet')
-
-maven_jar(
- name = 'gson',
- id = 'com.google.code.gson:gson:2.3.1',
- sha1 = 'ecb6e1f8e4b0e84c4b886c2f14a1500caf309757',
- license = 'Apache2.0',
-)
diff --git a/lib/commons/BUCK b/lib/commons/BUCK
deleted file mode 100644
index 7b7f70f..0000000
--- a/lib/commons/BUCK
+++ /dev/null
@@ -1,24 +0,0 @@
-include_defs('//bucklets/maven_jar.bucklet')
-
-maven_jar(
- name = 'codec',
- id = 'commons-codec:commons-codec:1.4',
- sha1 = '4216af16d38465bbab0f3dff8efa14204f7a399a',
- license = 'Apache2.0',
- exclude = ['META-INF/LICENSE.txt', 'META-INF/NOTICE.txt'],
-)
-
-maven_jar(
- name = 'lang',
- id = 'commons-lang:commons-lang:2.5',
- sha1 = 'b0236b252e86419eef20c31a44579d2aee2f0a69',
- license = 'Apache2.0',
- exclude = ['META-INF/LICENSE.txt', 'META-INF/NOTICE.txt'],
-)
-
-maven_jar(
- name = 'io',
- id = 'commons-io:commons-io:1.4',
- sha1 = 'a8762d07e76cfde2395257a5da47ba7c1dbd3dce',
- license = 'Apache2.0',
-)
diff --git a/lib/gerrit/BUCK b/lib/gerrit/BUCK
deleted file mode 100644
index 42d492c..0000000
--- a/lib/gerrit/BUCK
+++ /dev/null
@@ -1,13 +0,0 @@
-include_defs('//bucklets/maven_jar.bucklet')
-
-VER = '2.13.1'
-REPO = MAVEN_CENTRAL
-
-maven_jar(
- name = 'plugin-api',
- id = 'com.google.gerrit:gerrit-plugin-api:' + VER,
- sha1 = '8e12346dbb677d70987afdbec5352ff6e889a181',
- license = 'Apache2.0',
- attach_source = False,
- repository = REPO,
-)