Remove maven support
diff --git a/.gitignore b/.gitignore
index 3fdc8d1..b3aa3b6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-/target
/work
/build
/.gradle
@@ -6,7 +5,5 @@
/.checkstyle
/.project
/.settings
-/pom.xml.*
-/release.properties
/gerrit
/buck
diff --git a/README.md b/README.md
index 43a161c..bc740f1 100644
--- a/README.md
+++ b/README.md
@@ -31,17 +31,17 @@
* `linux`
* `java-1.7`
- * `maven-3.0.4`
+ * `gradle`
* `buck`
Build
---------------------
-* Use `maven`
+* Use `gradle`
To build plugin with maven.
- mvn package
+ ./gradlew build
* Use `buck`
@@ -55,11 +55,11 @@
Using another version API
--------------------------
-* For `maven`
+* For `gradle`
-Now avaliable for Gerrit 2.8.3 only. If you want to use it on another version of Gerrit, please try the below.
+Now avaliable for Gerrit 2.8.5 only. If you want to use it on another version of Gerrit, please try the below.
- mvn package -DGerrit-ApiVersion=2.8
+ ./gradlew build -PapiVersion=2.8
* For `buck`
@@ -96,6 +96,10 @@
History
---------------------
+* 1.4
+ * Add gradle support
+ * Remove maven support
+
* 1.3
* Build with Buck
* Bumped api version to 2.8.3
diff --git a/pom.xml b/pom.xml
deleted file mode 100644
index 5d66836..0000000
--- a/pom.xml
+++ /dev/null
@@ -1,181 +0,0 @@
-<!--
-Copyright (C) 2013 The Android Open Source Project
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>com.googlesource.gerrit.plugins.rabbitmq</groupId>
- <artifactId>rabbitmq</artifactId>
- <packaging>jar</packaging>
- <version>1.4-SNAPSHOT</version>
- <name>Gerrit RabbitMQ plugin</name>
-
- <licenses>
- <license>
- <name>The Apache Software License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- <comments>
- Copyright (c) 2013 rinrinne a.k.a. rin_ne All rights reserved.
- </comments>
- </license>
- </licenses>
-
- <developers>
- <developer>
- <id>rin_ne</id>
- <name>rinrinne</name>
- <email>rinrin.ne@gmail.com</email>
- <timezone>+9</timezone>
- </developer>
- </developers>
-
- <properties>
- <Gerrit-ApiType>plugin</Gerrit-ApiType>
- <Gerrit-ApiVersion>2.8.3</Gerrit-ApiVersion>
- <amqp-client.version>3.2.2</amqp-client.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
-
- <profiles>
- <profile>
- <id>2.8</id>
- <properties>
- <gson.version>2.1</gson.version>
- <commons-lang.version>2.5</commons-lang.version>
- <commons-codec.version>1.4</commons-codec.version>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- </profiles>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <forceCreation>true</forceCreation>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.7</source>
- <target>1.7</target>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.4.2</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- <configuration>
- <finalName>${project.artifactId}-${project.version}-${Gerrit-ApiVersion}</finalName>
- <transformers>
- <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <manifestEntries>
- <Gerrit-PluginName>${project.artifactId}</Gerrit-PluginName>
- <Gerrit-Module>com.googlesource.gerrit.plugins.rabbitmq.Module</Gerrit-Module>
-
- <Implementation-Vendor>Gerrit Code Review</Implementation-Vendor>
- <Implementation-URL>http://code.google.com/p/gerrit/</Implementation-URL>
-
- <Implementation-Title>${Gerrit-ApiType} ${project.artifactId}</Implementation-Title>
- <Implementation-Version>${project.version}</Implementation-Version>
-
- <Gerrit-ApiType>${Gerrit-ApiType}</Gerrit-ApiType>
- <Gerrit-ApiVersion>${Gerrit-ApiVersion}</Gerrit-ApiVersion>
- </manifestEntries>
- </transformer>
- </transformers>
- <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>com.google.gerrit</groupId>
- <artifactId>gerrit-${Gerrit-ApiType}-api</artifactId>
- <version>${Gerrit-ApiVersion}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>${gson.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>${commons-lang.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>${commons-codec.version}</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.rabbitmq</groupId>
- <artifactId>amqp-client</artifactId>
- <version>${amqp-client.version}</version>
- </dependency>
- </dependencies>
-
- <repositories>
- <repository>
- <id>gerrit-api-release</id>
- <url>https://gerrit-api.storage.googleapis.com/release/</url>
- </repository>
- <repository>
- <id>gerrit-api-snapshot</id>
- <url>https://gerrit-api.storage.googleapis.com/snapshot/</url>
- </repository>
- </repositories>
-
- <scm>
- <connection>scm:git:http://github.com/rinrinne/gerrit-rabbitmq-plugin.git</connection>
- <developerConnection>scm:git:https://github.com/rinrinne/gerrit-rabbitmq-plugin.git</developerConnection>
- <url>https://github.com/rinrinne/gerrit-rabbitmq-plugin</url>
- <tag>HEAD</tag>
- </scm>
-</project>