Consume API version 2.11
Also make the plugin version the same as the API version, and for
the Buck build consume the API artifacts from Maven Central.
Change-Id: I7362ed8efcc805d90cff4d56ed728c886b1a41c0
diff --git a/BUCK b/BUCK
index df1e8a6..3cca9ac 100644
--- a/BUCK
+++ b/BUCK
@@ -19,7 +19,7 @@
manifest_entries = [
'Gerrit-PluginName: xdocs',
'Gerrit-ApiType: plugin',
- 'Gerrit-ApiVersion: 2.11-SNAPSHOT',
+ 'Gerrit-ApiVersion: 2.11',
'Gerrit-HttpModule: com.googlesource.gerrit.plugins.xdocs.HttpModule',
'Gerrit-Module: com.googlesource.gerrit.plugins.xdocs.Module',
'Gerrit-InitStep: com.googlesource.gerrit.plugins.xdocs.XDocInit',
diff --git a/VERSION b/VERSION
index 63d6066..920fe49 100644
--- a/VERSION
+++ b/VERSION
@@ -1,5 +1,5 @@
# Used by BUCK to include "Implementation-Version" in plugin Manifest.
# If this file doesn't exist the output of 'git describe' is used
# instead.
-PLUGIN_VERSION = '1.0-SNAPSHOT'
+PLUGIN_VERSION = '2.11'
diff --git a/lib/gerrit/BUCK b/lib/gerrit/BUCK
index df798a7..b8298c6 100644
--- a/lib/gerrit/BUCK
+++ b/lib/gerrit/BUCK
@@ -1,7 +1,7 @@
include_defs('//bucklets/maven_jar.bucklet')
-VER = '2.11-SNAPSHOT'
-REPO = MAVEN_LOCAL
+VER = '2.11'
+REPO = MAVEN_CENTRAL
maven_jar(
name = 'plugin-api',
diff --git a/pom.xml b/pom.xml
index bfb6513..d7ebc5b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,12 +21,12 @@
<groupId>com.googlesource.gerrit.plugins.xdocs</groupId>
<artifactId>xdocs</artifactId>
<packaging>jar</packaging>
- <version>1.0-SNAPSHOT</version>
+ <version>2.11</version>
<name>xdocs</name>
<properties>
<Gerrit-ApiType>plugin</Gerrit-ApiType>
- <Gerrit-ApiVersion>2.11-SNAPSHOT</Gerrit-ApiVersion>
+ <Gerrit-ApiVersion>${project.version}</Gerrit-ApiVersion>
</properties>
<build>