Usage in SBT

The packages are published on Maven Central, cross-compiled for Scala 2.11 and 2.12, also cross-compiled to Scala.js 0.6.21:

These install instructions are for Scala’s SBT (see the setup instructions) and for Apache Maven build tools.

Everything in Monix

The main monix project contains everything in the Monix core, cross-compiled for:

Depends on:

Insert this line in build.sbt or Build.scala:

// for the JVM
libraryDependencies += "io.monix" %% "monix" % "3.0.0-RC1"

Monix is cross-compiled with Scala.js, so to target Javascript or mixed JVM/Javascript environments:

// for Scala.js/Javascript or cross-compilation
libraryDependencies += "io.monix" %%% "monix" % "3.0.0-RC1"

Sub-project: monix-execution

You can use just monix-execution, the lower level primitives for dealing with asynchronous execution, thus exposing Scheduler and Cancelable:

// Targeting just the JVM
libraryDependencies += "io.monix" %% "monix-execution" % "3.0.0-RC1"

// For Scala.js or cross-compiled projects
libraryDependencies += "io.monix" %%% "monix-execution" % "3.0.0-RC1"

Sub-project: monix-eval

You can use just monix-eval, the sub-project that exposes Task and Coeval:

Depends on:

// Targeting just the JVM
libraryDependencies += "io.monix" %% "monix-eval" % "3.0.0-RC1"

// For Scala.js or cross-compiled projects
libraryDependencies += "io.monix" %%% "monix-eval" % "3.0.0-RC1"

Sub-project: monix-reactive

You can use just monix-reactive, the sub-project that exposes the Observable pattern:

Depends on:

// Targeting just the JVM
libraryDependencies += "io.monix" %% "monix-reactive" % "3.0.0-RC1"

// For Scala.js or cross-compiled projects
libraryDependencies += "io.monix" %%% "monix-reactive" % "3.0.0-RC1"

Sub-project: monix-tail

You can use just monix-tail, the sub-project that exposes Iterant for pull based streaming:

Depends on:

// Targeting just the JVM
libraryDependencies += "io.monix" %% "monix-tail" % "3.0.0-RC1"

// For Scala.js or cross-compiled projects
libraryDependencies += "io.monix" %%% "monix-tail" % "3.0.0-RC1"
You are viewing the documentation for the latest Monix 3.x series.
If you're looking for the older 2.x click here!