GeezerVison is showing github.com — Add rxjava-android build module + config · fbotis/RxJava@8df8e9a
File tree
Expand file treeCollapse file tree
Open diff view settings
rxjava-contrib/rxjava-android
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +50Lines changed: 50 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 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 | +} |
Collapse file
Copy file name to clipboardExpand all lines: settings.gradle +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,4 +4,5 @@ include 'rxjava-core', \ |
4 | 4 | 'language-adaptors:rxjava-jruby', \ |
5 | 5 | 'language-adaptors:rxjava-clojure', \ |
6 | 6 | 'language-adaptors:rxjava-scala', \ |
7 | | -'rxjava-contrib:rxjava-swing' |
| 7 | +'rxjava-contrib:rxjava-swing', \ |
| 8 | +'rxjava-contrib:rxjava-android' |