object gatling is not a member of package sbt.io import io.gatling.sbt.GatlingPlugin

1,601 views
Skip to first unread message

nenaviju...@gmail.com

unread,
Jul 4, 2018, 2:34:40 AM7/4/18
to Gatling User Group

Hi!
I'm trying to enable Gatling in Intelliji Idea with sbt plugin, however I can't resolve the erros.

My scala version - 2.11.6
sbt version 1.1.6

I use autoimport in my project and set sbt launcher to custom, not bundled.
Files build.sbt and plugins.sbt are in folder IdeaProject/loadtesting.

I can even see gatling libraries in external libraries in IDEA, however build.sbt cannot import Gatling Plugin with error 

error: object gatling is not a member of package sbt.io
import io.gatling.sbt.GatlingPlugin

In build.sbt I'ved added:
import sbt.Keys.libraryDependencies
import io.gatling.sbt.GatlingPlugin

name := "loadtesting"

version := "1.1.6"

scalaVersion := "2.12.6"

//addSbtPlugin("io.gatling" % "gatling-sbt" % "2.2.2")

enablePlugins(GatlingPlugin)
libraryDependencies ++= "io.gatling.highcharts" % "gatling-charts-highcharts" % "2.3.1" % "test"
libraryDependencies ++= "io.gatling" % "gatling-test-framework" % "2.3.1" % "test"

scalacOptions := Seq(
"-encoding", "UTF-8", "-target:jvm-1.8", "-deprecation",
"-feature", "-unchecked", "-language:implicitConversions", "-language:postfixOps")

In project/plugins.sbt Ive'added:

addSbtPlugin("io.gatling" % "gatling-sbt" % "2.2.2")

libraryDependencies += "io.gatling.highcharts" % "gatling-charts-highcharts" % "2.3.1" % "test"
libraryDependencies += "io.gatling" % "gatling-test-framework" % "2.3.1" % "test"

Stéphane LANDELLE

unread,
Jul 4, 2018, 3:30:39 AM7/4/18
to gat...@googlegroups.com

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nenaviju...@gmail.com

unread,
Jul 4, 2018, 4:15:27 AM7/4/18
to Gatling User Group
Thanks, that helped)
среда, 4 июля 2018 г., 10:30:39 UTC+3 пользователь Stéphane Landelle написал:

Stéphane Landelle
GatlingCorp CEO
Ерфтлыб ер

To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages