I'm using sbt 0.13.7 and Scala 2.11.4.
In my build.sbt
, I have:
autoAPIMappings := true
and in a File.scala
:
/** scaladoc link to [[scala.concurrent.duration.FiniteDuration]] */
When running sbt doc
, I’m getting:
[warn] ...:5: Could not find any member to link for "scala.concurrent.duration.FiniteDuration".
[warn] /** scaladoc link to [[scala.concurrent.duration.FiniteDuration]] */
[warn] ^
Now, when I replace autoAPIMappings := true
with:
apiMappings += (scalaInstance.value.libraryJar ->
url(s"http://www.scala-lang.org/api/${scalaVersion.value}/"))
the compiler still gives the warning.
What could be a solution?
I wasn't able to reproduce this behavior using sbt 0.13.7 and Scala 2.11.4.
Do you have multi-project setup? If so make sure to explicitly add settings to each project, or define the common settings in
ThisBuild
scope.project/build.properties
build.sbt
src/main/scala/Hello.scala