Scalacheck / scalatest not found: how to add it to sbt / scala?

I installed typeafe-stack from http://typesafe.com/stack/download on my ubuntu12, than created a play project (g8 typesafehub / play-scala), and now I want to add scalatest or scalacheck to my project.

So my_app / project / plugins.sbt has the following lines:

// The Typesafe repository 
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.1")

Then I added scalatest using addSbtPlugin:

addSbtPlugin("org.scalatest" %% "scalatest" % "2.0.M1" % "test")

and now it does not work with the following message when I run 'sbt test'

[info] Resolving org.scalatest#scalatest;2.0.M1 ...
[warn]  module not found: org.scalatest#scalatest;2.0.M1
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-releases/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.3/2.0.M1/ivys/ivy.xml
[warn] ==== local: tried
[warn]   ~/.ivy2/local/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.3/2.0.M1/ivys/ivy.xml
[warn] ==== Typesafe repository: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/scalatest/scalatest_2.9.1_0.11.3/2.0.M1/scalatest-2.0.M1.pom
[warn] ==== typesafe-ivy-releases: tried
[warn]   http://repo.typesafe.com/typesafe/ivy-    releases/org.scalatest/scalatest/scala_2.9.1/sbt_0.11.3/2.0.M1/ivys/ivy.xml
[warn] ==== public: tried
[warn]     http://repo1.maven.org/maven2/org/scalatest/scalatest_2.9.1_0.11.3/2.0.M1/scalatest-2.0.M1.pom

: http://repo.typesafe.com/typesafe/releases/org/scalatest/scalatest_2.9.1_0.11.3/2.0.M1/scalatest-2.0.M1.pom URL http://repo.typesafe.com/typesafe/releases/org/scalatest/scalatest_2.9.1/2.0.M1/scalatest_2.9.1-2.0.M1.pom?

, scalageck: sbt- artifactId, scala -.

? , sbt - , sbt- URL- ?

.sbt

libraryDependencies += "org.scalatest" %% "scalatest" % "2.0.M1" % "test"

, sbt scalatest.jar :

my_app/test/AppTest.scala:1: object scalatest is not a member of package org
[error] import org.scalatest.FunSuite

sbt clean && sbt    org.easytesting # fest-util, 1.1.6 , scalatest.

scala 2.9.1 sbt 0.11.3, scalatest 2.0.M1 1.8; scalacheck:

resolvers ++= Seq(
  "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots",
  "releases"  at "http://oss.sonatype.org/content/repositories/releases"
)

libraryDependencies ++= Seq(
  "org.scalacheck" %% "scalacheck" % "1.9" % "test"
)

, URL- URL- sbtVersion, .

? .

+5
2

Scalatest - , . :

libraryDependencies += "org.scalatest" %% "scalatest" % "2.0.M1" % "test"

build.sbt ( "my_app" ), project/plugins.sbt.

, 0.11.3 URL-, , , SBT.

+9

plugins.sbt addSbtPlugin sbt. .

project/Build.scala. :

val appDependencies = Seq(
  // Add your project dependencies here,
)

:

val appDependencies = Seq(
  "org.scalacheck" %% "scalacheck" % "1.9" % "test",
  "org.scalatest" %% "scalatest" % "2.0.M1" % "test"
)

.

+4

All Articles