Merge branch 'stable-2.16' into stable-3.0
* stable-2.16:
Documentation: Refactor Eclipse related sections
Documentation: Add missing footer that links to plugin index page
Add an empty tools/BUILD file explicitly for Bazel
Change-Id: Ice25fdc55db3cc14aa0fbeb7d34ed3bbe33dfe29
diff --git a/src/main/resources/Documentation/build.md b/src/main/resources/Documentation/build.md
index 6382d72..5bd6251 100644
--- a/src/main/resources/Documentation/build.md
+++ b/src/main/resources/Documentation/build.md
@@ -25,6 +25,14 @@
bazel test //...
```
+This project can be imported into the Eclipse IDE. Execute:
+
+```
+ ./tools/eclipse/project.sh
+```
+
+to generate the required files and then import the project.
+
### Build in Gerrit tree
Put the external dependency Bazel build file into the Gerrit /plugins directory,
@@ -48,6 +56,13 @@
bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar
```
+To execute the tests run either one of:
+
+```
+ bazel test --test_tag_filters=@PLUGIN@ //...
+ bazel test plugins/@PLUGIN@:@PLUGIN@_tests
+```
+
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:
@@ -56,20 +71,9 @@
./tools/eclipse/project.py
```
-To execute the tests run either one of:
-
-```
- bazel test --test_tag_filters=@PLUGIN@ //...
- bazel test plugins/@PLUGIN@:@PLUGIN@_tests
-```
-
-This project can be imported into the Eclipse IDE. Execute:
-
-```
- ./tools/eclipse/project.sh
-```
-
-to generate the required files and then import the project.
-
How to build the Gerrit Plugin API is described in the [Gerrit
documentation](../../../Documentation/dev-bazel.html#_extension_and_plugin_api_jar_files).
+
+[Back to @PLUGIN@ documentation index][index]
+
+[index]: index.html
\ No newline at end of file
diff --git a/tools/BUILD b/tools/BUILD
new file mode 100644
index 0000000..1fa2160
--- /dev/null
+++ b/tools/BUILD
@@ -0,0 +1 @@
+# Empty file - bazel treat directories with BUILD file as a package
\ No newline at end of file