2010-09-14 19:59:04 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>proto</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
2015-10-07 01:43:38 +02:00
|
|
|
<version>0.6-SNAPSHOT</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<name>Gson Protobuf Support</name>
|
|
|
|
<description>Gson support for Protobufs</description>
|
2015-10-07 01:20:37 +02:00
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
</properties>
|
2010-09-14 19:59:04 +02:00
|
|
|
<distributionManagement>
|
|
|
|
<repository>
|
|
|
|
<id>local.repo</id>
|
|
|
|
<name>file repository to svn</name>
|
|
|
|
<url>file://${basedir}/../../mavenrepo</url>
|
|
|
|
</repository>
|
|
|
|
</distributionManagement>
|
|
|
|
<repositories>
|
|
|
|
<repository>
|
|
|
|
<id>gson</id>
|
|
|
|
<url>http://google-gson.googlecode.com/svn/mavenrepo</url>
|
|
|
|
<snapshots>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</snapshots>
|
|
|
|
<releases>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
</releases>
|
|
|
|
</repository>
|
|
|
|
</repositories>
|
|
|
|
<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>
|
|
|
|
</license>
|
|
|
|
</licenses>
|
|
|
|
<scm>
|
|
|
|
<connection>scm:svn:http://google-gson.googlecode.com/svn/trunk/proto</connection>
|
|
|
|
<developerConnection>scm:svn:https://google-gson.googlecode.com/svn/trunk/proto</developerConnection>
|
|
|
|
<url>http://google-gson.codegoogle.com/svn/trunk/proto</url>
|
|
|
|
</scm>
|
|
|
|
<issueManagement>
|
|
|
|
<system>Google Code Issue Tracking</system>
|
|
|
|
<url>http://code.google.com/p/google-gson/issues/list</url>
|
|
|
|
</issueManagement>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<!-- Gson: Java to Json conversion -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
|
|
<artifactId>gson</artifactId>
|
2015-10-07 01:20:37 +02:00
|
|
|
<version>2.3.1</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
|
<artifactId>protobuf-java</artifactId>
|
2015-10-07 01:20:37 +02:00
|
|
|
<version>2.6.1</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
<version>18.0</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
2015-10-07 01:20:37 +02:00
|
|
|
<version>4.12</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.truth</groupId>
|
|
|
|
<artifactId>truth</artifactId>
|
|
|
|
<version>0.27</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<finalName>gson-proto</finalName>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
2015-10-07 01:20:37 +02:00
|
|
|
<version>1.8</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>compile-protoc</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<configuration>
|
|
|
|
<tasks>
|
|
|
|
<mkdir dir="target/generated" />
|
|
|
|
<path id="proto.path">
|
|
|
|
<fileset dir="src/main/protobuf">
|
|
|
|
<include name="**/*.proto" />
|
|
|
|
</fileset>
|
|
|
|
</path>
|
|
|
|
<pathconvert pathsep=" " property="proto.files" refid="proto.path" />
|
|
|
|
<exec executable="protoc" failonerror="true">
|
|
|
|
<arg value="--java_out=src/main/java" />
|
2015-10-07 01:20:37 +02:00
|
|
|
<arg value="--proto_path=/usr/include" />
|
2010-09-14 19:59:04 +02:00
|
|
|
<arg value="-I${project.basedir}/src/main/protobuf" />
|
|
|
|
<arg line="${proto.files}" />
|
|
|
|
</exec>
|
|
|
|
</tasks>
|
|
|
|
</configuration>
|
|
|
|
<goals>
|
|
|
|
<goal>run</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
2011-04-12 18:16:35 +02:00
|
|
|
<version>2.3.2</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<configuration>
|
|
|
|
<source>1.6</source>
|
|
|
|
<target>1.6</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-eclipse-plugin</artifactId>
|
2011-04-12 18:16:35 +02:00
|
|
|
<version>2.8</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<configuration>
|
|
|
|
<downloadSources>true</downloadSources>
|
|
|
|
<downloadJavadocs>true</downloadJavadocs>
|
|
|
|
<workspace>../eclipse-ws</workspace>
|
|
|
|
<workspaceCodeStylesURL>file:///${basedir}/../lib/gson-formatting-styles.xml</workspaceCodeStylesURL>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-install-plugin</artifactId>
|
2015-10-07 01:20:37 +02:00
|
|
|
<version>2.5.2</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<!-- configuration>
|
|
|
|
<updateReleaseInfo>true</updateReleaseInfo>
|
|
|
|
<createChecksum>true</createChecksum>
|
|
|
|
<groupId>${groupId}</groupId>
|
|
|
|
<artifactId>${artifactId}</artifactId>
|
|
|
|
<version>${version}</version>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<classifier>sources</classifier>
|
|
|
|
<file>target/proto-sources.jar</file>
|
|
|
|
</configuration -->
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
2011-04-12 18:16:35 +02:00
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
|
|
<version>2.1</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<configuration>
|
2011-04-12 18:16:35 +02:00
|
|
|
<arguments>-DenableCiProfile=true</arguments>
|
|
|
|
<tagBase>https://google-gson.googlecode.com/svn/tags/</tagBase>
|
2010-09-14 19:59:04 +02:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
2011-04-12 18:16:35 +02:00
|
|
|
<version>2.1.2</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>attach-sources</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
2011-04-12 18:16:35 +02:00
|
|
|
<version>2.7</version>
|
2010-09-14 19:59:04 +02:00
|
|
|
<executions>
|
|
|
|
<execution>
|
2011-04-12 18:16:35 +02:00
|
|
|
<id>attach-javadocs</id>
|
2010-09-14 19:59:04 +02:00
|
|
|
<goals>
|
2011-04-12 18:16:35 +02:00
|
|
|
<goal>jar</goal>
|
2010-09-14 19:59:04 +02:00
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
2011-04-12 18:16:35 +02:00
|
|
|
<links>
|
|
|
|
<link>http://download.oracle.com/javase/1.5.0/docs/api/</link>
|
|
|
|
</links>
|
|
|
|
<version>true</version>
|
|
|
|
<show>public</show>
|
2010-09-14 19:59:04 +02:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<descriptor>src/main/resources/assembly-descriptor.xml</descriptor>
|
2015-10-07 01:20:37 +02:00
|
|
|
<finalName>proto-${project.version}</finalName>
|
2010-09-14 19:59:04 +02:00
|
|
|
<outputDirectory>target/dist</outputDirectory>
|
|
|
|
<workDirectory>target/assembly/work</workDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<developers>
|
|
|
|
<developer>
|
|
|
|
<name>Inderjeet Singh</name>
|
|
|
|
<organization>Google Inc.</organization>
|
|
|
|
</developer>
|
|
|
|
</developers>
|
|
|
|
</project>
|