diff --git a/README.md b/README.md index 54f5abb..260023d 100755 --- a/README.md +++ b/README.md @@ -32,7 +32,25 @@ The current stable version is available from here: * Release version: http://central.maven.org/maven2/org/xerial/snappy/snappy-java/ * Snapshot version (the latest beta version): https://oss.sonatype.org/content/repositories/snapshots/org/xerial/snappy/snappy-java/ -For Maven user, see [pom.xml example](#using-with-maven). +### Using with Maven + * Snappy-java is available from Maven's central repository: + +Add the following dependency to your pom.xml: + + + org.xerial.snappy + snappy-java + 1.1.1.6 + jar + compile + + +### Using with sbt + +``` +libraryDependencies += "org.xerial.snappy" % "snappy-java" % "1.1.1.6" +``` + ## Usage First, import `org.xerial.snapy.Snappy` in your Java code: @@ -68,24 +86,6 @@ If you have snappy-java-(VERSION).jar in the current directory, use `-classpath` $ javac -classpath ".:snappy-java-(VERSION).jar" Sample.java # in Mac or Linux -### Using with Maven - * Snappy-java is available from Maven's central repository: - -Add the following dependency to your pom.xml: - - - org.xerial.snappy - snappy-java - (version) - jar - compile - - -### Using with sbt - -``` -libraryDependencies += "org.xerial.snappy" % "snappy-java" % "(version)" -``` ## Public discussion group