File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -87,6 +87,21 @@ configurations.all {
8787}
8888
8989tasks {
90+ // FIXME (trask) copy-pasted from ai.java-conventions.gradle
91+ named<Javadoc >(" javadoc" ) {
92+ with (options as StandardJavadocDocletOptions ) {
93+ source = " 8"
94+ encoding = " UTF-8"
95+ docEncoding = " UTF-8"
96+ charSet = " UTF-8"
97+ breakIterator(true )
98+
99+ addStringOption(" Xdoclint:none" , " -quiet" )
100+ // non-standard option to fail on warnings, see https://bugs.openjdk.java.net/browse/JDK-8200363
101+ addStringOption(" Xwerror" , " -quiet" )
102+ }
103+ }
104+
90105 register<Test >(" smokeTest" ) {
91106 useJUnitPlatform()
92107
You can’t perform that action at this time.
0 commit comments