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.
sbt.version=0.13.7
lazy val commonSettings = Seq(
scalaVersion := "2.11.4",
autoAPIMappings := true
)
lazy val root = (project in file(".")).
aggregate(app).
settings(commonSettings: _*)
lazy val app = (project in file("app")).
settings(commonSettings: _*)
/** scaladoc link to [[scala.concurrent.duration.FiniteDuration]] */
object Hello extends App {
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With