@@ -70,19 +70,28 @@ 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- options. setOutputLevel(JavadocOutputLevel . QUIET )
80- // Check for syntax during linting.
81- options. addBooleanOption(" Xdoclint:syntax" , true )
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'.
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+ setOutputLevel(JavadocOutputLevel . QUIET )
81+ // Check for 'syntax' during linting. Note that the global
82+ // 'framework-api:javadoc' task checks for 'reference' in addition
83+ // to 'syntax'.
84+ addBooleanOption(" Xdoclint:syntax,-reference" , true )
85+ // With the javadoc tool on Java 24, it appears that the 'reference'
86+ // group is always active and the '-reference' flag is not honored.
87+ // Thus, we do NOT fail the build on Javadoc warnings due to
88+ // cross-module @see and @link references which are only reachable
89+ // when running the global 'framework-api:javadoc' task.
90+ addBooleanOption(' Werror' , false )
91+ }
92+
93+ // Attempt to suppress warnings due to cross-module @see and @link references.
94+ // Note that the global 'framework-api:javadoc' task displays all warnings.
8695 logging. captureStandardError LogLevel . INFO
8796 logging. captureStandardOutput LogLevel . INFO // suppress "## warnings" message
8897}
0 commit comments