| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (C) 2009 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> |
| |
| <parent> |
| <groupId>com.google.gerrit</groupId> |
| <artifactId>gerrit-parent</artifactId> |
| <version>2.7-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>gerrit-common</artifactId> |
| <name>Gerrit Code Review - Common</name> |
| |
| <description> |
| Classes common to both server and client. |
| </description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.google.gwt</groupId> |
| <artifactId>gwt-servlet</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>gwtexpui</groupId> |
| <artifactId>gwtexpui</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.gerrit</groupId> |
| <artifactId>gerrit-reviewdb</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.gerrit</groupId> |
| <artifactId>gerrit-prettify</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.gerrit</groupId> |
| <artifactId>gerrit-patch-jgit</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.code.findbugs</groupId> |
| <artifactId>jsr305</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-version</id> |
| <phase>generate-resources</phase> |
| <configuration> |
| <target> |
| <property name="dst" location="${project.build.outputDirectory}" /> |
| <property name="pkg" location="${dst}/com/google/gerrit/common" /> |
| <mkdir dir="${pkg}" /> |
| <exec executable="git" outputproperty="v"> |
| <arg value="describe"/> |
| <arg value="HEAD"/> |
| </exec> |
| <echo file="${pkg}/Version">${v}</echo> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |