Skip to content

Commit 9633048

Browse files
author
Satendra kumar
committed
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.
1 parent 7263aaa commit 9633048

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ Note: this branch targets Scala 2.11.x, support for Scala 2.10.x has been moved
44

55
## Quick start
66

7+
To include scala-async in an existing project use the library published on Maven Central.
8+
For sbt projects add the following to your build definition - build.sbt or project/Build.scala:
9+
10+
```scala
11+
libraryDependencies += "org.scala-lang.modules" %% "scala-async" % "0.9.5"
12+
```
13+
14+
For Maven projects add the following to your <dependencies> (make sure to use the correct Scala version prefix, _2.10 or _2.11,
15+
to match your project’s Scala version):
16+
17+
```scala
18+
<dependency>
19+
<groupId>org.scala-lang.modules</groupId>
20+
<artifactId>scala-async_2.11</artifactId>
21+
<version>0.9.5</version>
22+
</dependency>
23+
```
24+
725
After adding a scala-async to your classpath, write your first `async` block:
826

927
```scala

0 commit comments

Comments
 (0)