Skip to content

Commit 1bc5cbe

Browse files
committed
Undo JavaDoc move
Change-Id: I5dbc194c389caf4315484a72926ad5415841b1e5
1 parent ea5475c commit 1bc5cbe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build.gradle.kts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ allprojects {
3232
mavenLocal()
3333
}
3434

35+
// Skip Javadoc generation for Java 1.8 as it breaks build
36+
if (JavaVersion.current().isJava8Compatible) {
37+
tasks.withType<Javadoc> {
38+
options {
39+
this as StandardJavadocDocletOptions
40+
addStringOption("Xdoclint:none", "-quiet")
41+
}
42+
}
43+
}
44+
3545
if ((group as String).isNotEmpty() && name != "lint" && name != "internal") {
3646
configureAndroid()
3747
configureQuality()
@@ -42,16 +52,6 @@ allprojects {
4252
}
4353
}
4454

45-
// Skip Javadoc generation for Java 1.8 as it breaks build
46-
if (JavaVersion.current().isJava8Compatible) {
47-
tasks.withType<Javadoc> {
48-
options {
49-
this as StandardJavadocDocletOptions
50-
addStringOption("Xdoclint:none", "-quiet")
51-
}
52-
}
53-
}
54-
5555
val Project.configDir get() = "$rootDir/library/quality"
5656
val Project.reportsDir get() = "$buildDir/reports"
5757

0 commit comments

Comments
 (0)