File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
buildSrc/src/main/java/org/springframework/boot/build Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -230,10 +230,18 @@ private void configureJavadocConventions(Project project) {
230230 CoreJavadocOptions options = (CoreJavadocOptions ) javadoc .getOptions ();
231231 options .source ("17" );
232232 options .encoding ("UTF-8" );
233- options .addStringOption ("Xdoclint:none" , "-quiet" );
233+ addValuelessOption (options , "Xdoclint:none" );
234+ addValuelessOption (options , "quiet" );
235+ if (!javadoc .getName ().contains ("aggregated" )) {
236+ addValuelessOption (options , "-no-fonts" );
237+ }
234238 });
235239 }
236240
241+ private void addValuelessOption (CoreJavadocOptions options , String option ) {
242+ options .addMultilineMultiValueOption (option ).setValue (List .of (Collections .emptyList ()));
243+ }
244+
237245 private void configureJavaConventions (Project project ) {
238246 if (!project .hasProperty ("toolchainVersion" )) {
239247 JavaPluginExtension javaPluginExtension = project .getExtensions ().getByType (JavaPluginExtension .class );
You can’t perform that action at this time.
0 commit comments