Skip to content

Commit 76940c2

Browse files
committed
Configure Javadoc links to external sources
1 parent c86ea72 commit 76940c2

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,11 @@ configure(moduleProjects) {
103103
}
104104
}
105105

106+
ext.javadocLinks = [
107+
"https://docs.oracle.com/javase/8/docs/api/",
108+
"https://docs.spring.io/spring-framework/docs/5.3.x/javadoc-api/",
109+
"https://javadoc.io/doc/com.graphql-java/graphql-java/17.3/"
110+
] as String[]
111+
106112
apply from: "${rootDir}/gradle/publishing.gradle"
107113
}

gradle/publishing.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ plugins.withType(JavaPlugin) {
44
javadoc {
55
description = "Generates project-level javadoc for use in -javadoc jar"
66

7-
options.encoding = "UTF-8"
8-
options.memberLevel = JavadocMemberLevel.PROTECTED
9-
options.author = true
10-
options.header = project.name
11-
options.use = true
12-
options.addStringOption("Xdoclint:none", "-quiet")
7+
options {
8+
encoding = "UTF-8"
9+
memberLevel = JavadocMemberLevel.PROTECTED
10+
author = true
11+
header = project.name
12+
use = true
13+
links = project.ext.javadocLinks
14+
addStringOption("Xdoclint:none", "-quiet")
15+
}
1316

1417
// Suppress warnings due to cross-module @see and @link references.
1518
// Note that global 'api' task does display all warnings.

0 commit comments

Comments
 (0)