Maven Guava dependency problem

KastenKlicker

New member
Jan 8, 2022
8
1
3
Germany
I use the Google Cloud Compute dependency in my plugin and Guava is a transitive dependency of Google Cloud Compute.
Velocity uses Guava too, but another version which doesn't include a class required by the Google Cloud Compute.

I force the version needed by Google Cloud Compute in my pom.xml and the build log reports the right version of Guava is compiled into the shaded jar, but when I start the proxy, my plugin uses the outdated Guava library provided by the velocity jar, throwing a MethodNotFound exception.

When I compile velocity from source with the Guava version needed by Google Cloud Compute, it works.

Does anybody know how to solve the problem? Or is it possible I open a Issue (or even Merge Request) on GitHub to request an update of Guava?

My pom.xml: https://gist.github.com/KastenKlicker/6ff45dbd5b45212853651bbd219b03a2
My Build log: https://gist.github.com/KastenKlicker/830b5cabfb0184aa566cda305f9a99e8

Edit: I Use build #265 (at point of writing the newest available on papermc.io)
 

electronicboy

Administrator
Staff member
Dec 11, 2021
227
10
38
28
You'd need to relocate it

We intend to maintain our guava version to being the same version as is inside of MC for community alignment reasons
 
Solution