Java implementation of multiaddr.
Simply clone this repo.
MultiAddress m = new MultiAddress("/ip4/127.0.0.1/tcp/1234");
MultiAddress m = new MultiAddress("/ipfs/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC");
You can use this project by building the JAR file as specified below, or by using JitPack (also supporting Gradle, SBT, etc).
for Maven, you can add the follwing sections to your POM.XML:
<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.github.multiformats</groupId> <artifactId>java-multiaddr</artifactId> <version>$latest_version</version> </dependency> </dependencies>
ant dist will build a JAR file in the
./dist suitable for manual inclusion in a project. Dependent libraries are included in
mvn package will build a JAR file with Maven dependency information.
The version number is specified in
pom.xml and must be changed in both places in order to be accurately reflected in the JAR file manifest. A git tag must be added in the format "vx.x.x" for JitPack to work.
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2015 Ian Preston