#8600·guava

Set `ModulePackages` in our jar's `module-info`

Author: cpovirkCreated Aug 9, 2026Updated Sep 11, 2026
Labelstype=enhancementpackage=generalP3

I noticed in https://github.com/jspecify/jspecify/issues/866#issuecomment-5229519195 that JSpecify does not include a ModulePackages attribute in its module-info.class. That got me to check Guava, and sure enough, we don't include one here, either. That's probably for similar reasons: Maven builds the jar itself, without using jar, which would automatically modify module-info.class to include that attribute (I think).

My understanding is that ModulePackages is merely an optimization, possibly even only at runtime, not compile time, but I'm not sure of that. Still, it would presumably be a nice optimization to unlock someday.