Skip to content

Commit a221c56

Browse files
committed
Replace dead javadoc links with www.javadoc.io links.
JSR-305 doesn't have 2.0.1 JavaDoc, it is pointing at the 3.0.1 release as the first release thereafter that does. Also fixed doc generation when building under Java 9 and later.
1 parent 92e2f94 commit a221c56

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

build.gradle

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,21 @@ dependencies {
6161
testCompile(group: "org.assertj", name: "assertj-core", version: "1.7.0");
6262
}
6363

64-
javadoc.options.links("http://docs.oracle.com/javase/6/docs/api/");
65-
javadoc.options.links("http://jsr-305.googlecode.com/svn/trunk/javadoc/");
66-
javadoc.options.links("http://fasterxml.github.com/jackson-databind/javadoc/2.2.0/");
67-
javadoc.options.links("http://fasterxml.github.com/jackson-core/javadoc/2.2.0/");
68-
javadoc.options.links("http://fasterxml.github.com/jackson-annotations/javadoc/2.2.0/");
69-
javadoc.options.links("http://docs.guava-libraries.googlecode.com/git-history/v16.0.1/javadoc/");
70-
javadoc.options.links("http://fge.github.io/msg-simple/");
71-
javadoc.options.links("http://fge.github.io/jackson-coreutils/");
64+
javadoc.options {
65+
def currentJavaVersion = org.gradle.api.JavaVersion.current()
66+
// FIXME: https://github.com/gradle/gradle/issues/11182
67+
if (currentJavaVersion.compareTo(org.gradle.api.JavaVersion.VERSION_1_9) >= 0) {
68+
addStringOption("-release", "6");
69+
}
70+
links("https://docs.oracle.com/javase/6/docs/api/");
71+
links("https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/3.0.1/");
72+
links("https://fasterxml.github.com/jackson-databind/javadoc/2.2.0/");
73+
links("https://fasterxml.github.com/jackson-core/javadoc/2.2.0/");
74+
links("https://fasterxml.github.com/jackson-annotations/javadoc/2.2.0/");
75+
links("https://www.javadoc.io/doc/com.google.guava/guava/16.0.1/");
76+
links("https://fge.github.io/msg-simple/");
77+
links("https://fge.github.io/jackson-coreutils/");
78+
}
7279

7380
/*
7481
* Repositories to use

0 commit comments

Comments
 (0)