[Play 2.2.0 - Java] error: package play.cache does not exist

379 views
Skip to first unread message

Michael Hawkins

unread,
Nov 8, 2013, 9:38:12 PM11/8/13
to play-fr...@googlegroups.com
I just upgraded an application from Play 2.1.3 to 2.2.0 and, overall, it was a VERY painful experience to be honest.  First, the mailer plugin didn't play nice, then a sitemap plugin didn't work properly, and now I have one error left over from this upgrade, and I can't figure out how to resolve it:

error: package play.cache does not exist

I had to comment out ALL of my cache method wrappers, imports, and code just to get my app to compile.

What is causing this in Play 2.2.0?

HHeinz

unread,
Nov 9, 2013, 2:56:07 AM11/9/13
to play-fr...@googlegroups.com
Hello Michael, 

I assume your problem is related to the fact that cache is now a separate module. Please have a look at the release notes
http://www.playframework.com/documentation/2.2.0/Migration22

Play cache module

Play cache is now split out into its own module. If you are using the Play cache, you will need to add this as a dependency. For example, in Build.scala:

val addDependencies = Seq(
  jdbc,
  cache,
  ...
)

Henning 
Reply all
Reply to author
Forward
0 new messages