File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
124
124
options. author = true
125
125
options. header = project. name
126
126
options. links(project. ext. javadocLinks)
127
- options. addStringOption(' Xdoclint:none' , ' -quiet' )
127
+ if (JavaVersion . current(). isJava8Compatible()) {
128
+ options. addStringOption(' Xdoclint:none' , ' -quiet' )
129
+ }
128
130
129
131
// suppress warnings due to cross-module @see and @link references;
130
132
// note that global 'api' task does display all warnings.
@@ -834,7 +836,9 @@ configure(rootProject) {
834
836
options. stylesheetFile = file(" src/api/stylesheet.css" )
835
837
options. splitIndex = true
836
838
options. links(project. ext. javadocLinks)
837
- options. addStringOption(' Xdoclint:none' , ' -quiet' )
839
+ if (JavaVersion . current(). isJava8Compatible()) {
840
+ options. addStringOption(' Xdoclint:none' , ' -quiet' )
841
+ }
838
842
839
843
source subprojects. collect { project ->
840
844
project. sourceSets. main. allJava
You can’t perform that action at this time.
0 commit comments