-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[2.11.0] error_prone_annotations dependency #2676
Comments
Yes this is intended, and is mentioned now in the release notes (which were published after you created this issue):
See #2346 and #2320 (comment). These Error Prone annotations are not only useful for Gson, but also for other projects using Gson which have configured Error Prone as well (and some annotations might also be recognized by IDEs). For example Is this causing any problems for you, or were you just curious if this was done intentionally? |
Hi @Marcono1234, Thanks for the reply. It was mainly a question, nothing to be related to a bug, but the dependency seemed suspect at first glance. So, thanks for the clarification 👍 |
It seems to me that this is a little like google/guava#6606 where an attempt was made (is being made?) to correct the way these dependencies work for Gradle projects to avoid pulling in largely unnecessary runtime dependencies - and at least workaround Maven's inability to express the nature of the dependency correctly. |
Re google/guava#6606, @cpovirk from our team is following that and might want to comment here. My inclination is not to lose too much sleep over this "unneeded" dependency, since as @Marcono1234 notes they are potentially useful to clients that also use Error Prone, and also the jar is only 19K. |
Now that you mention it, if we want Error Prone users to benefit, we should probably add (Others have already covered my main thoughts on the dependency here and in #2346 (comment).) |
...as threatened in google#2676 (comment).
...as threatened in google#2676 (comment).
...as threatened in #2676 (comment). Co-authored-by: Éamonn McManus <[email protected]>
Hello,
We just saw the latest version 2.11.0 on Maven and updated to it. However, after a
mvn dependency:tree
this version now requireserror_prone_annotations
as dependency:Is that really wanted or is it a build issue ? 🤔 ErrorProne is mainly used during compilation time and it seems strange to us that it would be used during runtime.
Thanks for the job !
The text was updated successfully, but these errors were encountered: