yf0994 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Scala: Document that jsr305 is needed to compile against guava #1127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Scala doesn't compile a project that is using Guava because of a missing jsr305 
dependency.

See 
http://stackoverflow.com/questions/10007994/why-do-i-need-jsr305-to-use-guava-in
-scala for a detailed description. I also run into this problem with Guava 
13.0.1.

It cost me an hour of work to find the problem and it's solution. 
Maybe you can give a hint in the README for the Scala users.
I think changing the jsr305-dep from the scope "provided" to "compile" should 
also solve the problem with scalac.

Original issue reported on code.google.com by bernhard...@gmail.com on 30 Aug 2012 at 7:58

GoogleCodeExporter commented 9 years ago
This is issue 1095, but we should at leastupdate the docs.  I thought we'd done 
this on <http://code.google.com/p/guava-libraries/wiki/UseGuavaInYourBuild>, 
but it turns out that we documented only that you need to declare the 
dependency if *you* use jsr305.  The Scala question has come up often enough 
that we should document it to.

Original comment by cpov...@google.com on 30 Aug 2012 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by cpov...@google.com on 30 Aug 2012 at 3:02

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08