-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update from 1.25.0 to 1.26.0 causes NoClassDefFoundError on 'Preconditions' #502
Comments
Guava has been a "provided" dependency for a long time, meaning that it's up to you to add a dependency (or be using another library with a guava dependency). This library supports guava 20+. That said, we are looking at possibly setting up dependency ranges for these libraries (google-http-java-client, google-oauth-java-client, and google-api-java-client). |
|
@ejona86 might have context on why Guava is a provided dependency - do the original reasons for it still hold? With Guava's higher surface stability these days, I suspect the situation is different now. |
That's because Guava isn't actually a dependency at this level. It looks like it is supposed to be jarjar'd: https://github.com/googleapis/google-http-java-client/blob/master/google-http-client/pom.xml#L44 That said, I do remember that guava was an actual dependency somewhere (maybe oauth?), because of all the guava-jdk5 nastiness, but I don't remember precisely where. |
This has not be used for years.
Environment details
Steps to reproduce
Preconditions.checkState(true);
works fine in 1.25.0.NoClassDefFoundError
Stacktrace
Any additional information below
Making sure to follow these steps will guarantee the quickest resolution possible.
In the class
Preconditions
there is a change fromcom.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(expression);
tocom.google.common.base.Preconditions.checkArgument(expression);
. And this package is not part of the JAR File.The text was updated successfully, but these errors were encountered: