From 298e1db625e7bd7c12a2576e7895d3a69f9e2d57 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 8 Jun 2026 22:15:27 +0200 Subject: [PATCH] Skip web fonts in module javadocs Prior to this commit, module javadoc packages like "spring-core-7.0.8-javadoc.jar" would contain 4MB of web fonts in the `resource-files/fonts/` folder. This increases significantly (often doubles) the size of the javadoc JAR for little value. With this commit, Web fonts are packaged with the aggregated Javadocs for the entire Spring Framework project, but are skipped for inidividual modules. Closes gh-36889 --- gradle/spring-module.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gradle/spring-module.gradle b/gradle/spring-module.gradle index 09755cdac4a..1a4ff436aa6 100644 --- a/gradle/spring-module.gradle +++ b/gradle/spring-module.gradle @@ -84,6 +84,8 @@ javadoc { // cross-module @see and @link references which are only reachable // when running the global 'framework-api:javadoc' task. addBooleanOption('Werror', false) + // do not ship 4MB of web fonts for single modules + addBooleanOption("-no-fonts", true) } // Attempt to suppress warnings due to cross-module @see and @link references.