Skip to content

Commit 996fcd7

Browse files
committed
Merge pull request #3704 from zsxwing/javadoc
1.x: Make the javadoc task generate correct docs
2 parents 9b77f42 + b9a57f0 commit 996fcd7

File tree

2 files changed

+487
-0
lines changed

2 files changed

+487
-0
lines changed

build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,19 @@ dependencies {
1818

1919
javadoc {
2020
exclude "**/rx/internal/**"
21+
exclude "**/test/**"
22+
exclude "**/perf/**"
23+
options {
24+
windowTitle = "RxJava Javadoc ${project.version}"
25+
}
26+
// Clear the following options to make the docs consitent with the old format
27+
options.addStringOption('top').value = ''
28+
options.addStringOption('doctitle').value = ''
29+
options.addStringOption('header').value = ''
30+
if (JavaVersion.current().isJava7()) {
31+
// "./gradle/stylesheet.css" only supports Java 7
32+
options.addStringOption('stylesheetfile', rootProject.file('./gradle/stylesheet.css').toString())
33+
}
2134
}
2235

2336
// support for snapshot/final releases with the various branches RxJava uses

0 commit comments

Comments
 (0)