Skip to content
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

Use Guava version 33.1.0 #6546

Merged
merged 8 commits into from Apr 28, 2024
7 changes: 6 additions & 1 deletion build.gradle
Expand Up @@ -753,10 +753,15 @@ subprojects {

// TODO: it's a bug that annotatedlib:guava requires the error_prone_annotations dependency.
annotatedGuava "com.google.errorprone:error_prone_annotations:${versions.errorprone}"
annotatedGuava ('org.checkerframework.annotatedlib:guava:30.1.1-jre') {
annotatedGuava ('org.checkerframework.annotatedlib:guava:33.1.0-jre') {
// So long as Guava only uses annotations from checker-qual, excluding it should not cause problems.
exclude group: 'org.checkerframework'
}
// Without this, running the Checker Framework leads to "class file for
// javax.annotation.meta.TypeQualifierDefault not found". I was not able to
// figure out how to use Gradle's exclusions (of transitive dependencies) in
// order to avoid the need for this.
annotatedGuava 'com.google.code.findbugs:jsr305:3.0.2'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is needed because the pom file in Maven central doesn't have Guava's dependencies. See: https://central.sonatype.com/artifact/org.checkerframework.annotatedlib/guava/dependencies

Compared to Google's version:
https://central.sonatype.com/artifact/com.google.guava/guava/dependencies

You'll need to release annotated Guava to fix this. (I'm also ok if you want to merge this work around.)

}

shadowJar {
Expand Down