93eddc9069
This is similar to the way Gson does its type adapters: factories that can delegate and compose. It's different because annotations are fundamental to the design. It's also different because there are no APIs to convert to and from JSON on the central object: instead callers must get the JSON adapter they're interested in and do that there. This is potentially more efficient because applications can hold the adapter they need.
101 lines
2.9 KiB
XML
101 lines
2.9 KiB
XML
<?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/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.sonatype.oss</groupId>
|
|
<artifactId>oss-parent</artifactId>
|
|
<version>7</version>
|
|
</parent>
|
|
|
|
<groupId>com.squareup.moshi</groupId>
|
|
<artifactId>moshi-parent</artifactId>
|
|
<version>0.1-SNAPSHOT</version>
|
|
<packaging>pom</packaging>
|
|
<name>Moshi (Parent)</name>
|
|
<description>A modern JSON API for Android and Java</description>
|
|
<url>https://github.com/square/moshi</url>
|
|
|
|
<modules>
|
|
<module>moshi</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<java.version>1.6</java.version>
|
|
|
|
<!-- Dependencies -->
|
|
<okio.version>1.0.2-SNAPSHOT</okio.version>
|
|
|
|
<!-- Test Dependencies -->
|
|
<junit.version>4.11</junit.version>
|
|
<assertj.version>1.6.1</assertj.version>
|
|
</properties>
|
|
|
|
<scm>
|
|
<url>https://github.com/square/moshi/</url>
|
|
<connection>scm:git:https://github.com/square/moshi.git</connection>
|
|
<developerConnection>scm:git:git@github.com:square/moshi.git</developerConnection>
|
|
<tag>HEAD</tag>
|
|
</scm>
|
|
|
|
<issueManagement>
|
|
<system>GitHub Issues</system>
|
|
<url>https://github.com/square/moshi/issues</url>
|
|
</issueManagement>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache 2.0</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup.okio</groupId>
|
|
<artifactId>okio</artifactId>
|
|
<version>${okio.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<version>${assertj.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.0</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<version>2.5</version>
|
|
<configuration>
|
|
<autoVersionSubmodules>true</autoVersionSubmodules>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|