Added license and release info

This commit is contained in:
moandji.ezana 2013-02-26 21:49:57 +02:00
parent 9fe3637126
commit 58224344f0
2 changed files with 85 additions and 0 deletions

View file

@ -2,6 +2,32 @@
toml4j is a [TOML](https://github.com/mojombo/toml) parser that uses the [Parboiled](http://www.parboiled.org) PEG parser. toml4j is a [TOML](https://github.com/mojombo/toml) parser that uses the [Parboiled](http://www.parboiled.org) PEG parser.
## Installation
toml4j is currently published in snapshot form. Add the following repository to your POM:
````xml
<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
````
Add the following dependency:
````xml
<dependency>
<groupId>com.moandjiezana.toml</groupId>
<artifactId>toml4j</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
````
## Usage ## Usage
````java ````java
@ -24,3 +50,9 @@ Long a = toml.getLong("a"); // returns 1, not 2
Long b = toml.getLong("b"); // returns 3 Long b = toml.getLong("b"); // returns 3
Long c = toml.getLong("c"); // returns null Long c = toml.getLong("c"); // returns null
```` ````
## License
toml4j is copyright of Moandji Ezana
toml4j is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php)

53
pom.xml
View file

@ -11,6 +11,14 @@
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<name>toml4j</name> <name>toml4j</name>
<description>A parser for TOML</description> <description>A parser for TOML</description>
<url>http://moandjiezana.com/toml/toml4j</url>
<developers>
<developer>
<id>moandji.ezana</id>
<name>Moandji Ezana</name>
<email>mwanji@gmail.com</email>
</developer>
</developers>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -42,4 +50,49 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<licenses>
<license>
<name>The MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:mwanji/toml4j.git</connection>
<developerConnection>scm:git:git@github.com:mwanji/toml4j.git</developerConnection>
<url>https://github.com/mwanji/toml4j</url>
</scm>
<issueManagement>
<system>Github Issues</system>
<url>https://github.com/mwanji/toml4j/issues</url>
</issueManagement>
<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.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>