[2.3.0] can't install redis plugin

254 views
Skip to first unread message

Ömer Faruk Gül

unread,
Jun 14, 2014, 10:34:01 PM6/14/14
to play-fr...@googlegroups.com
Hi,

I created a new play project with the new "activator", and my build.sbs looks like this:

name := """AppTest"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

scalaVersion := "2.11.1"

resolvers += "org.sedis" at "http://pk11-scratch.googlecode.com/svn/trunk"

libraryDependencies ++= Seq(
  javaJdbc,
  javaEbean,
  cache,
  javaWs,
  "com.typesafe" %% "play-plugins-redis" % "2.1.1",
  "commons-beanutils" % "commons-beanutils" % "1.8.3",
  "postgresql" % "postgresql" % "9.1-901.jdbc4",
  "mysql" % "mysql-connector-java" % "5.1.23",
  "com.amazonaws" % "aws-java-sdk" % "1.3.30",
  "org.apache.commons" % "commons-email" % "1.3",
  //"com.google.http-client" % "google-http-client" % "1.15.0-rc",
  "us.monoid.web" % "resty" % "0.3.2",
  "com.ning" % "async-http-client" % "1.7.16",
  "com.googlecode.libphonenumber" % "libphonenumber" % "5.9",
  "com.urbanairship" % "java-client" % "0.2.1",
  "joda-time" % "joda-time" % "2.3"
)


If I remove "com.typesafe" %% "play-plugins-redis" % "2.1.1" then everything compiles without problem, this dependencies don't produce problems with play version 2.2, why is there a problem with play 2.3?

Donovan Muller

unread,
Jun 16, 2014, 7:41:51 AM6/16/14
to play-fr...@googlegroups.com
Hi Ömer,

You are using Play 2.3 with Scala 2.11.
So, if you use this form of declaring your dependency:

"com.typesafe" %% "play-plugins-redis" % "2.1.1"

SBT will try append the current Scala version (2.11 in your case) for you (see here http://www.scala-sbt.org/release/docs/Library-Management.html#Dependencies). 
I.e. It will try and find:

"com.typesafe" % "play-plugins-redis_2.11" % "2.1.1"

There is currently no Scala 2.11 build of the Redis plugin (http://repo.typesafe.com/typesafe/releases/com/typesafe/), so you will have to build your own or wait for an official build.

Cheers

sachin walia

unread,
Jun 16, 2014, 1:45:01 PM6/16/14
to play-fr...@googlegroups.com
I've built my own Java based Redis Plugin as it was easier to manage that way:


The Java code I posted on Stack overflow might be helpful.

thanks
Reply all
Reply to author
Forward
0 new messages