Getting Started

Dávid Karnok edited this page Aug 5, 2018 · 38 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.rxjava2" name="rxjava" rev="2.2.0" />

and for SBT:

libraryDependencies += "io.reactivex" %% "rxscala" % "0.26.5"

libraryDependencies += "io.reactivex.rxjava2" % "rxjava" % "2.2.0"

and for Gradle:

compile 'io.reactivex.rxjava2:rxjava:2.2.0'

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=""
      <description>Reactive Extensions for Java</description>

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.rxjava2:rxjava:2.2.0-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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.