Setup

This section contains instructions on how to get Reactors working in your project. Reactors.IO has multiple language frontends, and works on multiple platforms. Currently, Reactors can be used with Scala and Java as a library for the JVM, or alternatively on NodeJS or inside the browser if you are using the Scala.js frontend.

SBT

If you are developing using the sbt build tool, the easiest is to include Reactors into your project as a library dependency.

To get started with Reactors.IO, you should grab the latest snapshot version distributed on Maven. If you are using SBT, add the following to your project definition:

resolvers ++= Seq(
  "Sonatype OSS Snapshots" at
    "https://oss.sonatype.org/content/repositories/snapshots",
  "Sonatype OSS Releases" at
    "https://oss.sonatype.org/content/repositories/releases"
)

libraryDependencies ++= Seq(
  "io.reactors" %% "reactors" % "0.8-SNAPSHOT")

If you are using Scala.js, use the following dependency:

libraryDependencies ++= Seq(
  "io.reactors" %%% "reactors" % "0.8-SNAPSHOT")

The dependency above includes all the Reactors modules. You can also depend on a specific module, for example, reactors-core, which includes only the core functionality:

libraryDependencies ++= Seq(
  "io.reactors" %% "reactors-core" % "0.8-SNAPSHOT")

If you are using Scala.js:

libraryDependencies ++= Seq(
  "io.reactors" %%% "reactors-core" % "0.8-SNAPSHOT")

Alternatively, you can download any of these dependencies manually, and keep them in your folder for managed libraries.

Maven

If you are using Maven, you can use the following dependency:

<dependency>
    <groupId>io.reactors</groupId>
    <artifactId>reactors_2.11</artifactId>
    <version>0.7</version>
</dependency>