Skip to content

Commit 10fb206

Browse files
committed
Produce combined JavaDoc, add links, exclude internals
1 parent 00a7192 commit 10fb206

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed

all/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ description = "gRPC: All"
33
// Make sure that no transitive dependencies are included.
44
configurations.compile.transitive = false
55

6+
for (subproject in rootProject.subprojects) {
7+
if (subproject == project) {
8+
continue
9+
}
10+
evaluationDependsOn(subproject.path)
11+
}
12+
613
dependencies {
714
compile project(':grpc-auth'),
815
project(':grpc-core'),
@@ -22,3 +29,15 @@ jar {
2229
}
2330
}
2431

32+
javadoc {
33+
classpath = files(rootProject.subprojects.collect { subproject ->
34+
subproject.javadoc.classpath
35+
})
36+
for (subproject in rootProject.subprojects) {
37+
if (subproject == project) {
38+
continue;
39+
}
40+
source subproject.javadoc.source
41+
options.links subproject.javadoc.options.links.toArray(new String[0])
42+
}
43+
}

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ subprojects {
3232
it.options.encoding = "UTF-8"
3333
}
3434

35-
javadoc.options.encoding = "UTF-8"
35+
javadoc.options {
36+
encoding = 'UTF-8'
37+
links 'https://docs.oracle.com/javase/8/docs/api/'
38+
}
3639

3740
ext {
3841
libraries = [

netty/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ dependencies {
77
// Tests depend on base class defined by core module.
88
testCompile project(':grpc-core').sourceSets.test.output
99
}
10+
11+
javadoc.options.links 'https://netty.io/4.1/api/'

okhttp/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ dependencies {
1515
animalsniffer {
1616
signature = "org.codehaus.mojo.signature:java16:+@signature"
1717
}
18+
19+
javadoc.exclude 'com/squareup/**'
20+
javadoc.options.links 'http://square.github.io/okhttp/javadoc/'

stub/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ dependencies {
1010
// Configure the animal sniffer plugin
1111
animalsniffer {
1212
signature = "org.codehaus.mojo.signature:java16:+@signature"
13-
}
13+
}
14+
15+
javadoc.options.links 'http://docs.guava-libraries.googlecode.com/git-history/release/javadoc/'

0 commit comments

Comments
 (0)