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

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"

PTAL at https://github.com/gatling/gatling-sbt-plugin-demo

Thanks, that helped)