File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ javadoc {
3131 destinationDir = project. java. docsDir. dir(" javadoc-api" ). get(). asFile
3232 splitIndex = true
3333 links(rootProject. ext. javadocLinks)
34- addBooleanOption(' Xdoclint:syntax,reference' , true ) // only check syntax and reference with doclint
35- addBooleanOption(' Werror' , true ) // fail build on Javadoc warnings
34+ // Check for 'syntax' and 'reference' during linting.
35+ addBooleanOption(' Xdoclint:syntax,reference' , true )
36+ addBooleanOption(' Werror' , true ) // fail build on Javadoc warnings
3637 }
3738 maxMemory = " 1024m"
3839 doFirst {
Original file line number Diff line number Diff line change @@ -70,21 +70,19 @@ normalization {
7070javadoc {
7171 description = " Generates project-level javadoc for use in -javadoc jar"
7272
73- options. encoding = " UTF-8"
74- options. memberLevel = JavadocMemberLevel . PROTECTED
75- options. author = true
76- options. header = project. name
77- options. use = true
78- options. links(project. ext. javadocLinks)
79- // Check for syntax during linting. 'none' doesn't seem to work in suppressing
80- // all linting warnings all the time (see/link references most notably).
81- options. addStringOption(" Xdoclint:syntax" , " -quiet" )
82-
83- // Suppress warnings due to cross-module @see and @link references.
84- // Note that global 'api' task does display all warnings, and
85- // checks for 'reference' on top of 'syntax'.
86- logging. captureStandardError LogLevel . INFO
87- logging. captureStandardOutput LogLevel . INFO // suppress "## warnings" message
73+ options {
74+ encoding = " UTF-8"
75+ memberLevel = JavadocMemberLevel . PROTECTED
76+ author = true
77+ header = project. name
78+ use = true
79+ links(project. ext. javadocLinks)
80+ // Check for 'syntax' during linting. Note that the global
81+ // 'framework-api:javadoc' task checks for 'reference' in addition
82+ // to 'syntax'.
83+ addBooleanOption(" Xdoclint:syntax,-reference" , true )
84+ addBooleanOption(' Werror' , true ) // fail build on Javadoc warnings
85+ }
8886}
8987
9088tasks. register(' sourcesJar' , Jar ) {
You can’t perform that action at this time.
0 commit comments