Skip to content

Commit 97838ac

Browse files
committed
Sync with upstream
1 parent e5d436f commit 97838ac

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

buildSrc/src/main/kotlin/ai.java-conventions.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ tasks {
8585
duplicatesStrategy = DuplicatesStrategy.FAIL
8686
}
8787

88+
named<Javadoc>("javadoc") {
89+
with(options as StandardJavadocDocletOptions) {
90+
source = "8"
91+
encoding = "UTF-8"
92+
docEncoding = "UTF-8"
93+
charSet = "UTF-8"
94+
breakIterator(true)
95+
96+
addStringOption("Xdoclint:none", "-quiet")
97+
// non-standard option to fail on warnings, see https://bugs.openjdk.java.net/browse/JDK-8200363
98+
addStringOption("Xwerror", "-quiet")
99+
}
100+
}
101+
88102
withType<AbstractArchiveTask>().configureEach {
89103
isPreserveFileTimestamps = false
90104
isReproducibleFileOrder = true

0 commit comments

Comments
 (0)