Skip to content

Commit 8df8e9a

Browse files
committed
Add rxjava-android build module + config
Should this be shared with other contribs through the parent module? Lots of copy and paste here.
1 parent cdcd75a commit 8df8e9a

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apply plugin: 'java'
2+
apply plugin: 'eclipse'
3+
apply plugin: 'idea'
4+
apply plugin: 'osgi'
5+
6+
sourceCompatibility = JavaVersion.VERSION_1_6
7+
targetCompatibility = JavaVersion.VERSION_1_6
8+
9+
dependencies {
10+
compile project(':rxjava-core')
11+
provided 'junit:junit-dep:4.10'
12+
provided 'org.mockito:mockito-core:1.8.5'
13+
provided 'com.google.android:android:4.0.1.2'
14+
}
15+
16+
eclipse {
17+
classpath {
18+
// include 'provided' dependencies on the classpath
19+
plusConfigurations += configurations.provided
20+
21+
downloadSources = true
22+
downloadJavadoc = true
23+
}
24+
}
25+
26+
idea {
27+
module {
28+
// include 'provided' dependencies on the classpath
29+
scopes.PROVIDED.plus += configurations.provided
30+
}
31+
}
32+
33+
javadoc {
34+
options {
35+
doclet = "org.benjchristensen.doclet.DocletExclude"
36+
docletpath = [rootProject.file('./gradle/doclet-exclude.jar')]
37+
stylesheetFile = rootProject.file('./gradle/javadocStyleSheet.css')
38+
windowTitle = "RxJava Javadoc ${project.version}"
39+
}
40+
options.addStringOption('top').value = '<h2 class="title" style="padding-top:40px">RxJava</h2>'
41+
}
42+
43+
jar {
44+
manifest {
45+
name = 'rxjava-android'
46+
instruction 'Bundle-Vendor', 'Netflix'
47+
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
48+
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
49+
}
50+
}

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ include 'rxjava-core', \
44
'language-adaptors:rxjava-jruby', \
55
'language-adaptors:rxjava-clojure', \
66
'language-adaptors:rxjava-scala', \
7-
'rxjava-contrib:rxjava-swing'
7+
'rxjava-contrib:rxjava-swing', \
8+
'rxjava-contrib:rxjava-android'

0 commit comments

Comments
 (0)