[build] Remove Javadoc fonts (#8837)

Javadoc now includes 4 MB of fonts for every Javadoc JAR, which we have
18 of, which causes unnecessary bloat to the installer size. This
disables the inclusion of those fonts, using the built-in fallback
included in the Javadoc stylesheet. This also increases the default font
size by 10% after polling the FTC Discord resulted in people asking for
a bigger font.
This commit is contained in:
Gold856
2026-04-29 17:57:31 -04:00
committed by GitHub
parent 668124e0fd
commit 3fddf71c47
2 changed files with 9 additions and 1 deletions

View File

@@ -145,11 +145,13 @@ subprojects {
options.encoding = 'UTF-8'
}
// Enables UTF-8 support in Javadoc
// Enables UTF-8 support in Javadoc, disables 4 MB of fonts being added to every Javadoc JAR, add our styles
tasks.withType(Javadoc) {
options.addStringOption("charset", "utf-8")
options.addStringOption("docencoding", "utf-8")
options.addStringOption("encoding", "utf-8")
options.addBooleanOption("-no-fonts", true)
options.addStringOption("-add-stylesheet", "${rootDir}/docs/javadoc.css")
}
// Sign outputs with Developer ID