Getting Started

David Karnok edited this page Jun 27, 2016 · 35 revisions

Getting Binaries

You can find binaries and dependency information for Maven, Ivy, Gradle, SBT, and others at

Example for Maven:


and for Ivy:

<dependency org="io.reactivex" name="rxjava" rev="1.1.6" />

and for SBT:

libraryDependencies += "" % "rxjava-scala" % "0.26.2"

and for Gradle:

compile 'io.reactivex:rxjava:1.1.6'

If you need to download the jars instead of using a build system, create a Maven pom file like this with the desired version:

<?xml version="1.0"?>
<project xmlns="" 
	<name>Simple POM to download rxjava and dependencies</name>

Then execute:

$ mvn -f download-rxjava-pom.xml dependency:copy-dependencies

That command downloads rxjava-*.jar and its dependencies into ./target/dependency/.

You need Java 6 or later.


Snapshots are available via JFrog:

repositories {
    maven { url '' }

dependencies {
    compile 'io.reactivex:rxjava:1.1.y-SNAPSHOT'


To check out and build the RxJava source, issue the following commands:

$ git clone
$ cd RxJava/
$ ./gradlew build

To do a clean build, issue the following command:

$ ./gradlew clean build

A build should look similar to this:

$ ./gradlew build
:rxjava:processResources UP-TO-DATE
:rxjava:signArchives SKIPPED
:rxjava:licenseMain UP-TO-DATE
:rxjava:licenseTest UP-TO-DATE
:rxjava:processTestResources UP-TO-DATE


Total time: 30.758 secs

On a clean build you will see the unit tests run. They will look something like this:

> Building > :rxjava:test > 91 tests completed


One developer reported getting the following error:

Could not resolve all dependencies for configuration ':language-adaptors:rxjava-scala:provided'

He was able to resolve the problem by removing old versions of scala-library from .gradle/caches and .m2/repository/org/scala-lang/ and then doing a clean build. (See this page for details.)

You may get the following error during building RxJava:

Failed to apply plugin [id 'java'] Could not generate a proxy class for class nebula.core.NamedContainerProperOrder.

It's a JVM issue, see GROOVY-6951 for details. If so, you can run export GRADLE_OPTS=-noverify before building RxJava, or update your JDK.