The refinery-source code depends on guava only for its caching implementation. However as @Ottomata noted on a CR review, Caffeine is now the way to go for caching instead of guava: https://guava.dev/releases/31.0-jre/api/docs/com/google/common/cache/CacheBuilder.html#:~:text=The%20successor%20to%20Guava's%20caching,CacheBuilder%20is%20its%20Caffeine%20class
This change will allow refinery-source to get rid of it's guava dependendcy, facilitating integration with other modules (guava version sync is complicated, see https://gerrit.wikimedia.org/r/c/wikimedia-event-utilities/+/857779)
Note:
There is another usage of guava in StemmerUDF line 209:
return Joiner.on(" ").join(words);
We can replace this using return StringUtils.join(words, " "); from org.apache.commons.lang.StringUtils