On Thu, Jul 21, 2016 at 8:55 PM, <
lauri...@gmail.com> wrote:
> Hi everyone,
>
> I am using sbt 0.13.8 and Scala 2.10.5.
> I would like to install Cucumber and I am a bit lost ...
>
> 1-Which Dependencies do I need in my build.sbt and plugins.sbt ?
>
> I have tried this but sbt can not resolve the dependencies from "info.cukes"
> (I have tried several versions)
>
> libraryDependencies ++= Seq(
> "org.scala-lang" % "scala-library" % "2.10.5",
> "junit" % "junit" % "4.11" % "test",
> "org.scala-lang" % "scala-compiler" % "2.10.5",
Adding the Scala compiler and runtime library looks a bit odd in Sbt:
I suggest you read the Sbt documentation before going too far in a
wrong direction.
> "org.scala-lang" % "scala-reflect" % "2.10.5",
> "info.cukes" % "cucumber-scala" % "1.1.6",
cucumber-scala needs the Scala version so use Sbt's %% syntax to add
it. The others are java packages so they are correct.
> "info.cukes" % "cucumber-core" % "1.1.6"
> )
Also do you really need to use those old versions of Scala, Sbt and Cucumber?
> 2-Do I need these packages ; cucumber-core , cucumber-jvm and
> cucumber-junit ?
This build.sbt should work for the Scala Calculator Example in the
current release:
--- BEGIN ---
scalaVersion := "2.11.8"
libraryDependencies ++= Seq(
"info.cukes" %% "cucumber-scala" % "1.2.4" % "test",
"info.cukes" % "cucumber-junit" % "1.2.4" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
--- END ---
junit-interface is included just to tell Sbt to run JUnit tests during
the test phase, because we use the JUnit Cucumber runner in that
example.
> Thanks for everything,
> LM
Cheers,
Paolo