我曾经使用:
"org.scalacheck" %% "scalacheck" % "1.10.1" % "test" withSources() withJavadoc(),
"org.specs2" %% "specs2" % "1.14" % "test" withSources() withJavadoc(),
效果很好,然后我将依赖项升级到我认为是最新的:
"org.scalacheck" %% "scalacheck" % "1.12.1" % "test" withSources() withJavadoc(),
"org.specs2" %% "specs2-core" % "2.4.15" % "test" withSources() withJavadoc(),
根据http://etorreborre.github.io/specs2/应该是正确的
但现在ScalaCheck
不被承认为成员org.specs2
[error] /Users/me/src/aFile.scala:7: object ScalaCheck is not a member of package org.specs2
[error] import org.specs2.ScalaCheck
[error] ^
我已经完成sbt clean
并被常春藤缓存删除rm -r ~/.ivy2/cache