Fix Buck driven build
Change-Id: I3e26ee7c03ad62fa0074ba3e0a774763f3cad80a
diff --git a/BUCK b/BUCK
index 572baad..e690185 100644
--- a/BUCK
+++ b/BUCK
@@ -1,5 +1,5 @@
-API_VERSION = '2.9-SNAPSHOT'
-REPO = MAVEN_LOCAL
+API_VERSION = '2.8.1'
+REPO = GERRIT
gerrit_plugin(
name = 'reviewers',
diff --git a/pom.xml b/pom.xml
index bfbfeea..1580cd0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
<groupId>com.googlesource.gerrit.plugins.reviewers</groupId>
<artifactId>reviewers</artifactId>
<packaging>jar</packaging>
- <version>2.9-SNAPSHOT</version>
+ <version>2.8.1</version>
<name>reviewers</name>
<properties>
@@ -79,7 +79,7 @@
<repositories>
<repository>
<id>gerrit-api-repository</id>
- <url>https://gerrit-api.commondatastorage.googleapis.com/snapshot/</url>
+ <url>https://gerrit-api.commondatastorage.googleapis.com/release</url>
</repository>
</repositories>
<description>Add default reviewers with different strategies</description>
diff --git a/src/main/resources/Documentation/build.md b/src/main/resources/Documentation/build.md
index 997d702..5fa68b7 100644
--- a/src/main/resources/Documentation/build.md
+++ b/src/main/resources/Documentation/build.md
@@ -6,17 +6,8 @@
Buck
----
-Two modes of operations of building with Buck are supported: build in Gerrit
-tree and outside of the Gerrit tree.
-
-To build in Gerrit tree clone the plugin under plugins directory and run
-
-```
- $>buck build plugins/reviewers:reviewers
-```
-
-from the Gerrit base directory. To build the plugin standalone (outside of
-the Gerrit tree), run
+To build with Buck in standalone mode (outside of the Gerrit tree),
+run
```
$>buck build plugin
@@ -34,9 +25,7 @@
Prerequisites
-------------
-Only Gerrit in tree mode doesn't need gerrit-plugin-api dependency. For
-other build modes gerrit-plugin-api must be fetched from remote or local
-Maven repository.
+gerrit-plugin-api must be fetched from remote or local Maven repository.
How to obtain the Gerrit Plugin API is described in the [Gerrit
documentation](../../../Documentation/dev-buck.html#_extension_and_plugin_api_jar_files).
diff --git a/tools/download_file.py b/tools/download_file.py
index 8d76a40..35c167f 100755
--- a/tools/download_file.py
+++ b/tools/download_file.py
@@ -24,7 +24,7 @@
from zipfile import ZipFile, BadZipfile, LargeZipFile
REPO_ROOTS = {
- 'GERRIT': 'http://gerrit-maven.storage.googleapis.com',
+ 'GERRIT': 'https://gerrit-api.commondatastorage.googleapis.com/release',
'ECLIPSE': 'https://repo.eclipse.org/content/groups/releases',
'MAVEN_CENTRAL': 'http://repo1.maven.org/maven2',
'MAVEN_LOCAL': 'file://' + path.expanduser('~/.m2/repository'),