Skip to content

Commit 72657ce

Browse files
committed
Fix javaDoc publishing.
1 parent 6289fab commit 72657ce

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ subprojects {
3838
test {
3939
useJUnitPlatform()
4040
}
41+
42+
javadoc {
43+
source = sourceSets.main.allJava
44+
classpath = configurations.compileClasspath
45+
46+
options {
47+
setMemberLevel JavadocMemberLevel.PUBLIC
48+
setAuthor true
49+
50+
links "https://docs.oracle.com/javase/6/docs/api/"
51+
}
52+
if(JavaVersion.current().isJava9Compatible()) {
53+
options.addBooleanOption('html4', true)
54+
}
55+
}
4156
}
4257

4358
task wrapper(type: Wrapper) {

gradle/check-errorprone.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import org.gradle.internal.jvm.Jvm
22

3-
if (!Jvm.current().javaVersion.java9Compatible) {
3+
if (!JavaVersion.current().isJava9Compatible()) {
44
apply plugin: 'net.ltgt.errorprone'
55

66
dependencies {

gradle/publish-maven.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ task sourcesJar(type: Jar) {
88

99
task javadocJar(type: Jar) {
1010
classifier 'javadoc'
11-
from javadoc.destinationDir
11+
from javadoc
1212
}
1313

1414
publishing {

0 commit comments

Comments
 (0)