Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion buildSrc/src/main/groovy/archunit.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ tasks.withType(JavaCompile) { Task task ->

javadoc {
options.addBooleanOption('html5', true)
}
options.addBooleanOption("-no-fonts", true)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check that this works? I think the option should be --no-fonts (two dashes), see e.g. https://github.com/apache/maven-javadoc-plugin/pull/1309/changes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, for sure. 🙂

With addBooleanOption("--no-fonts", true),

./gradlew javadoc

fails with

> Task :archunit:javadoc FAILED
error: invalid flag: ---no-fonts
Did you mean: --no-fonts
For more details on available options, use --help or --help-extra
1 error

}