This is an automated email from the git hooks/post-receive script. bengen pushed a commit to annotated tag jackson-dataformat-smile-2.0.0 in repository jackson-dataformat-smile.
commit 0ded36e5dfc24d027064cb25a9a02295f8daca55 Author: Tatu Saloranta <[email protected]> Date: Sun Nov 6 22:21:51 2011 -0800 First commit --- README.md | 35 +++++++++++++ pom.xml | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 210 insertions(+) diff --git a/README.md b/README.md new file mode 100644 index 0000000..08755cb --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +== Overview + +This Jackson extension handles reading and writing of data using [Smile](http://wiki.fasterxml.com/SmileFormatSpec) data format ("binary JSON"). +It extends standard Jackson streaming API (`JsonFactory`, `JsonParser`, `JsonGenerator`), and as such works seamlessly with all the higher level data abstractions (data binding, tree model, and pluggable extensions). + +== Status + +Module is fully usable. + +== Usage + +### Maven dependency + +To use this extension on Maven-based projects, use following dependency: + + <dependency> + <groupId>com.fasterxml.jackson</groupId> + <artifactId>jackson-dataformat-smile</artifactId> + <version>1.9.2</version> + </dependency> + +(or whatever version is most up-to-date at the moment) + +### Usage + +Basic usage is by using `SmileFactory` in places where you would usually use `JsonFactory`: + + + SmileFactory f = new SmileFactory(); + // can configure instance with 'SmileParser.Feature' and 'SmileGenerator.Feature' + ObjectMapper mapper = new ObjectMapper(f); + // and then read/write data as usual + SomeType value = ...; + byte[] smileData = mapper.writeValueAsBytes(value); + SomeType otherValue = mapper.readValue(smileData, SomeType.class); diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..3e44d20 --- /dev/null +++ b/pom.xml @@ -0,0 +1,175 @@ +<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> + <parent> + <groupId>org.sonatype.oss</groupId> + <artifactId>oss-parent</artifactId> + <version>5</version> + </parent> + <groupId>com.fasterxml.jackson</groupId> + <artifactId>jackson-dataformat-smile</artifactId> + <name>Jackson-dataformat-Smile</name> + <version>1.9.2-SNAPSHOT</version> + <packaging>bundle</packaging> + <description>Support for reading and writing Smile ("binary JSON") encoded data using Jackson abstractions (streaming API, data binding, tree model) + </description> + <url>http://wiki.fasterxml.com/JacksonForSmile</url> + <scm> + <connection>scm:git:[email protected]:FasterXML/jackson-dataformat-smile.git</connection> + <developerConnection>scm:git:[email protected]:FasterXML/jackson-dataformat-smile.git</developerConnection> + <url>http://github.com/FasterXML/jackson-dataformat-smile</url> + </scm> + <developers> + <developer> + <id>tatu</id> + <name>Tatu Saloranta</name> + <email>[email protected]</email> + </developer> + </developers> + + <prerequisites> + <maven>2.2.1</maven> + </prerequisites> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <!-- Licensing --> + <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> + <organization> + <name>fasterxml.com</name> + <url>http://fasterxml.com</url> + </organization> + + <dependencies> + <!-- Extends Jackson core --> + <dependency> + <groupId>org.codehaus.jackson</groupId> + <artifactId>jackson-mapper-asl</artifactId> + <version>1.9.2</version> + </dependency> + + <!-- and for testing, JUnit (or TestNG?) is needed --> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.8.2</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.3.2</version> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.1</version> + <configuration> + <mavenExecutorId>forked-path</mavenExecutorId> + </configuration> + </plugin> + <plugin><!-- plug-in to attach source bundle in repo --> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <version>2.1.2</version> + <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> + <version>2.6.1</version> + <configuration> + <source>1.5</source> + <target>1.5</target> + <encoding>UTF-8</encoding> + <maxmemory>512m</maxmemory> + <links> + <link>http://java.sun.com/javase/6/docs/api/</link> + </links> + </configuration> + <executions> + <execution> + <id>attach-javadocs</id> + <phase>verify</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- Plus, let's make jars OSGi bundles as well --> + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <version>2.3.4</version> + <extensions>true</extensions> + <configuration> + <instructions> + <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> + <Bundle-Vendor>fasterml.com</Bundle-Vendor> + <Import-Package> +org.codehaus.jackson +</Import-Package> + <Private-Package> +</Private-Package> + <Export-Package> +com.fasterxml.jackson.dataformat.smile +</Export-Package> + </instructions> + </configuration> + </plugin> + </plugins> + </build> + <profiles> + <profile> + <id>release-sign-artifacts</id> + <activation> + <property> + <name>performRelease</name> + <value>true</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + <!-- NOTE: repositories from parent POM --> + +</project> -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jackson-dataformat-smile.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

