Hi all,
NB: Total scala & gatling noob with first time post after much googling.
I’m using sbt 0.13.6 on OS X, trying to follow the instructions in the readme at https://github.com/gatling/gatling-sbt
Here’s my build.sbt:
enablePlugins(GatlingPlugin)
name := "solution-360-payment-flow-client"
version := "0.1"
scalaVersion := "2.11.2"
scalacOptions := Seq("-unchecked", “-deprecation”, “-encoding”, “utf8”)
libraryDependencies ++= {
val akkaV = "2.3.6"
val sprayV = "1.3.2"
Seq(
"io.spray" %% “spray-json” % “1.3.1”,
"io.spray" %% “spray-client” % sprayV,
"io.spray" %% “spray-can” % sprayV,
"io.spray" %% “spray-routing” % sprayV,
"io.spray" %% “spray-testkit” % sprayV % “test”,
"io.spray" %% “spray-caching” % sprayV,
"com.typesafe.akka" %% “akka-actor” % akkaV,
"com.typesafe.akka" %% “akka-testkit” % akkaV % “test”,
"org.specs2" %% “specs2-core” % “2.3.11” % “test”,
"io.gatling.highcharts" % “gatling-charts-highcharts” % “2.1.1” % “test,it”,
"io.gatling" % “gatling-test-framework” % “2.1.1” % "test,it"
)
}
EclipseKeys.withSource := true
And my project/plugins.sbt:
addSbtPlugin(“io.gatling” % “gatling-sbt” % “2.1.0”)
addSbtPlugin(“com.typesafe.sbteclipse” % “sbteclipse-plugin” % “2.5.0”)
Here’s my terminal output when trying to run sbt in the root directory of my project (sanitized with ellipses to protect the innocent & highlighting added). My ~/.sbt/0.13/plugins/plugins.sbt is empty.
scala -version
Scala code runner version 2.11.4 – Copyright 2002-2013, LAMP/EPFL
sbt --version
sbt launcher version 0.13.6
sbt
[info] Loading global plugins from /Users/matthew/.sbt/0.13/plugins
[info] Loading project definition from /Users/matthew/Documents/…/lesson-360-exercises/payment-flow-client/solution/project
[info] Updating {file:/Users/matthew/Documents/…/lesson-360-exercises/payment-flow-client/solution/project/}solution-build…
[info] Resolving org.fusesource.jansi#jansi;1.4 …
[info] Done updating.
/Users/matthew/Documents/…/lesson-360-exercises/payment-flow-client/solution/build.sbt:1: error: not found: value enablePlugins
enablePlugins(GatlingPlugin)
^
[error] Type error in expression
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
What am I doing wrong?
TIA,
Matthew