For the most part, you should be able to just find+replace all
references to com.google.common
with dev.mccue.guava
.
Consult the original documentation for in-depth usage guides.
<dependency>
<groupId>dev.mccue</groupId>
<artifactId>guava-math</artifactId>
<version>33.2.0</version>
</dependency>
This module is a soft-fork of Guava which
- Is shaded under
dev.mccue.guava
- Has a proper
module-info.java
- Has all usages of
sun.misc.*
, The Security Manager, andfinalize()
removed.
This module in particular only contains the code from com.google.common.math
.
The work of shading is done by this project. Releases of this and dependent modules should contain the guava release or commit hash from which they are generated.
- It doesn't seem like guava will be modularized any time soon
- I want to enable more libraries to be fully modular so that the
jlink
workflow is more viable - This was fun to do, and it seems as if some people are interested in the results.
I'll try to keep up to date, but if you
- Notice something wrong
- Want me to make a release for a new version
- Want a minute of my time
Feel free to reach out.
Consult the README of the aggregator module for a full change list.