Skip to content

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

Closed

Description

@gissuebot

Original issue created by bernhardberger345 on 2012-08-30 at 07:58 AM


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.

Activity

  1. gissuebot commented on Nov 1, 2014

    @gissuebot
    Author

    Original comment posted by cpovirk@google.com on 2012-08-30 at 02:51 PM


    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.


    Status: Accepted

  2. gissuebot commented on Nov 1, 2014

    @gissuebot
    Author

    Original comment posted by cpovirk@google.com on 2012-08-30 at 03:02 PM


    (No comment entered for this change.)


    Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址