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

**URL:** <https://community.gatling.io/t/object-gatling-is-not-a-member-of-package-sbt-io-import-io-gatling-sbt-gatlingplugin/4407>\
**Category:** Gatling (Open-Source)\
**Created:** [July 4, 2018, 6:34am UTC](https://community.gatling.io/t/object-gatling-is-not-a-member-of-package-sbt-io-import-io-gatling-sbt-gatlingplugin/4407 "2018-07-04T06:34:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nenavijugooglakk](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@nenavijugooglakk](https://community.gatling.io/u/nenavijugooglakk)\
**Post date:** [July 4, 2018, 6:34am UTC](https://community.gatling.io/t/object-gatling-is-not-a-member-of-package-sbt-io-import-io-gatling-sbt-gatlingplugin/4407/1 "2018-07-04T06:34:40Z")

</div>

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](http://sbt.io)  
import io.gatling.sbt.GatlingPlugin

In build.sbt I’ved added:

```auto
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:

```auto
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"

```

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [July 4, 2018, 7:30am UTC](https://community.gatling.io/t/object-gatling-is-not-a-member-of-package-sbt-io-import-io-gatling-sbt-gatlingplugin/4407/2 "2018-07-04T07:30:05Z")

</div>

PTAL at [https://github.com/gatling/gatling-sbt-plugin-demo](https://github.com/gatling/gatling-sbt-plugin-demo)

---

<div class="post-metadata">

**Author:** ![nenavijugooglakk](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@nenavijugooglakk](https://community.gatling.io/u/nenavijugooglakk)\
**Post date:** [July 4, 2018, 8:15am UTC](https://community.gatling.io/t/object-gatling-is-not-a-member-of-package-sbt-io-import-io-gatling-sbt-gatlingplugin/4407/3 "2018-07-04T08:15:26Z")

</div>

Thanks, that helped)
