From 9633048443c7adcb16fec460c174f958b291213c Mon Sep 17 00:00:00 2001 From: Satendra kumar Date: Fri, 25 Sep 2015 12:22:21 +0530 Subject: Add dependency information for including in project. Added dependency information for Maven and SBT so that it is easier for the developers who are new to the library. --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 0f5c730..5351773 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,24 @@ Note: this branch targets Scala 2.11.x, support for Scala 2.10.x has been moved ## Quick start +To include scala-async in an existing project use the library published on Maven Central. +For sbt projects add the following to your build definition - build.sbt or project/Build.scala: + +```scala +libraryDependencies += "org.scala-lang.modules" %% "scala-async" % "0.9.5" +``` + +For Maven projects add the following to your (make sure to use the correct Scala version prefix, _2.10 or _2.11, +to match your project’s Scala version): + +```scala + + org.scala-lang.modules + scala-async_2.11 + 0.9.5 + +``` + After adding a scala-async to your classpath, write your first `async` block: ```scala -- cgit v1.2.3