I'm writing a Play framework application and would like to use ElasticSearch to index and search data. The application is simple and I created it using IntelliJ > New Play Application, and so on.
Everything went well until I added
"org.elasticsearch" % "elasticsearch" % "1.3.2",
"com.sksamuel.elastic4s" %% "elastic4s" % "1.3.2",
To build.sbt
, which now looks like:
name := "example-core"
version := "1.0"
lazy val `example-core` = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.1"
libraryDependencies ++= Seq(
jdbc ,
javaJdbc,
javaEbean,
"mysql" % "mysql-connector-java" % "5.1.27",
anorm ,
cache ,
javaWs ,
"org.elasticsearch" % "elasticsearch" % "1.3.2",
"com.sksamuel.elastic4s" %% "elastic4s" % "1.3.2"
)
unmanagedResourceDirectories in Test <+= baseDirectory ( _ /"target/web/public/test" )
Which is nothing fancy. As soon as I do that, IntelliJ fetches these plugins and somehow, changes my application type (correct me if I'm wrong) and from that point onwards, I can no longer add scala classes to packages: Screenshot
And this is how the same menu looks as soon as I remove
"org.elasticsearch" % "elasticsearch" % "1.3.2",
"com.sksamuel.elastic4s" %% "elastic4s" % "1.3.2",
What is going on?