Skip to content
Youngchan edited this page Mar 2, 2016 · 2 revisions

Getting Binaries

[http://search.maven.org]에서 Maven, Ivy, Gradle, SBT 등등의 바이너리와 의존성 정보를 찾을 수 있습니다.(http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.reactivex%22%20AND%20a%3A%22rxjava%22).

Maven 예제:

<dependency>
    <groupId>io.reactivex</groupId>
    <artifactId>rxjava</artifactId>
    <version>1.0.10</version>
</dependency>

Ivy 예제:

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

SBT 예제:

libraryDependencies += "com.netflix.rxjava" % "rxjava-scala" % "1.0.10"

Gradle 예제:

compile 'io.reactivex:rxjava:1.0.10'

빌드 시스템을 사용하는 대신 jar을 다운 받고자 한다면 다음과 같이 원하는 버전을 기입하여 Maven pom 파일을 만드세요 :

<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.netflix.rxjava.download</groupId>
	<artifactId>rxjava-download</artifactId>
	<version>1.0-SNAPSHOT</version>
	<name>Simple POM to download rxjava and dependencies</name>
	<url>http://github.com/ReactiveX/RxJava</url>
	<dependencies>
		<dependency>
			<groupId>io.reactivex</groupId>
			<artifactId>rxjava</artifactId>
			<version>1.0.10</version>
			<scope/>
		</dependency>
	</dependencies>
</project>

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.

Building

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

$ git clone git@github.com:ReactiveX/RxJava.git
$ 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:compileJava
:rxjava:processResources UP-TO-DATE
:rxjava:classes
:rxjava:jar
:rxjava:sourcesJar
:rxjava:signArchives SKIPPED
:rxjava:assemble
:rxjava:licenseMain UP-TO-DATE
:rxjava:licenseTest UP-TO-DATE
:rxjava:compileTestJava
:rxjava:processTestResources UP-TO-DATE
:rxjava:testClasses
:rxjava:test
:rxjava:check
:rxjava:build

BUILD SUCCESSFUL

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

Troubleshooting

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.

Clone this wiki locally