Revert "Add support for Bazel in Gerrit tree build"

This reverts commit 05cd303f9b0329e322e78ffeb7fe67e01efe34c3.

This commit not only added support for Bazel build, it also removed
the documentation for the buck build but didn't remove the buck
build support.

For stable-2.13, we only need Buck build.

This commit will be omitted when merging stable-2.13 up to master.

Change-Id: I30386751f42f5d4b5e0ce37b3f2da844aebdc074
diff --git a/BUILD b/BUILD
deleted file mode 100644
index 5565e59..0000000
--- a/BUILD
+++ /dev/null
@@ -1,26 +0,0 @@
-load("//tools/bzl:junit.bzl", "junit_tests")
-load(
-    "//tools/bzl:plugin.bzl",
-    "gerrit_plugin",
-    "PLUGIN_DEPS",
-    "PLUGIN_TEST_DEPS",
-)
-
-gerrit_plugin(
-    name = "server-config",
-    srcs = glob(["src/main/java/**/*.java"]),
-    resources = glob(["src/main/resources/**/*"]),
-    manifest_entries = [
-        "Gerrit-PluginName: server-config",
-        "Gerrit-HttpModule: com.googlesource.gerrit.plugins.serverconfig.HttpModule",
-    ],
-)
-
-junit_tests(
-    name = "server_config_tests",
-    srcs = glob(["src/test/java/**/*.java"]),
-    tags = ["server-config"],
-    deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
-        ":server-config__plugin",
-    ],
-)
\ No newline at end of file
diff --git a/src/main/resources/Documentation/build.md b/src/main/resources/Documentation/build.md
index 991f520..e58c2b5 100644
--- a/src/main/resources/Documentation/build.md
+++ b/src/main/resources/Documentation/build.md
@@ -3,34 +3,85 @@
 
 This plugin can be built with Buck or Maven.
 
-Clone (or link) this plugin to the `plugins` directory of Gerrit's source tree.
+Buck
+----
 
-Then issue
+Two build modes are supported: Standalone and in Gerrit tree.
+The in-tree build mode is recommended if this plugin shall be
+build together with the Gerrit tree.
+The standalone build mode can be use to build this plugin
+independently of the Gerrit tree.
+
+### Build standalone
+
+Clone bucklets library:
 
 ```
-  bazel build plugins/@PLUGIN@
+  git clone https://gerrit.googlesource.com/bucklets
+
+```
+and link it to server-config plugin directory:
+
+```
+  cd server-config && ln -s ../bucklets .
 ```
 
-in the root of Gerrit's source tree to build
+Add link to the .buckversion file:
+
+```
+  cd server-config && ln -s bucklets/buckversion .buckversion
+```
+
+Add link to the .watchmanconfig file:
+```
+  cd server-config && ln -s bucklets/watchmanconfig .watchmanconfig
+```
+
+To build the plugin, issue the following command:
+
+
+```
+  buck build plugin
+```
 
 The output is created in
 
 ```
-  bazel-genfiles/plugins/@PLUGIN@/@PLUGIN@.jar
+  buck-out/gen/server-config.jar
 ```
 
-This project can be imported into the Eclipse IDE.
-Add the plugin name to the `CUSTOM_PLUGINS` set in
-Gerrit core in `tools/bzl/plugins.bzl`, and execute:
+Test are executed with
+
+```
+  buck test
+```
+
+
+### Build in Gerrit tree
+
+Clone or link this plugin to the plugins directory of Gerrit's source
+tree, and issue the command:
+
+```
+  buck build plugins/server-config
+```
+
+The output is created in
+
+```
+  buck-out/gen/plugins/server-config/server-config.jar
+```
+
+This project can be imported into the Eclipse IDE:
 
 ```
   ./tools/eclipse/project.py
 ```
 
-To execute the tests run:
+Test are executed with
 
 ```
-  bazel test plugins/@PLUGIN@
+  buck test --include server-config-plugin
 ```
 
 Maven