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

Add Annotation File Utilities as an included build. #3332

Merged
merged 9 commits into from
May 29, 2020

Conversation

smillst
Copy link
Member

@smillst smillst commented May 27, 2020

Before this change it was possible to use dependencies of AFU without specifying them in the build files.

@smillst smillst changed the title Use annotation-file-utilities.jar from the local Maven repository. Add Annotation File Utilities as an included build. May 27, 2020
settings.gradle Outdated
@@ -6,4 +6,10 @@ include 'framework'
include 'checker-qual'
include 'checker-qual-android'
include 'framework-test'

includeBuild ('../annotation-tools/annotation-file-utilities'){
if(!file('../annotation-tools/annotation-file-utilities').exists()) {
Copy link
Member Author

Choose a reason for hiding this comment

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

spacing


// TODO: The annotated version of Guava gives an error:
// org.checkerframework.annotatedlib/guava/.../guava-28.2-jre.jar(/com/google/common/collect/ImmutableCollection.class):
// warning: Cannot find annotation method 'value()' in type 'DoNotMock': class file for com.google.errorprone.annotations.DoNotMock not found
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be a bug in how the annotated version of Guava was made. I don't understand it yet.
In the meanwhile, can you try the workaround used in AFU, which is to add a dependency on error_prone_annotations?

@mernst mernst assigned smillst and unassigned mernst May 28, 2020
@smillst smillst merged commit 684bc02 into typetools:master May 29, 2020
@smillst smillst deleted the maven branch May 29, 2020 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants