Play 2.0-RC2 doesn't work on heroku
-
09-12-2019 - |
Question
I created a small app in play 2.0-RC2, but I can't push it to heroku. The error I'm getting is:
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] play:sbt-plugin:2.0-RC2 (sbtVersion=0.11.2, scalaVersion=2.9.1)
[warn]
[error] {file:/tmp/build_lhsutbwdl8uo/project/}default-be7cb3/*:update: sbt.ResolveException: unresolved dependency: play#sbt-plugin;2.0-RC2: not found
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? ! Failed to build app with SBT 0.11.0
! Heroku push rejected, failed to compile Scala app
I thought heroku just doesn't support play 2.0-RC2, but apparently James Ward succeeded pushing play 2.0-RC2 app to heroku :/ (http://www.jamesward.com/2012/02/21/play-framework-2-with-scala-anorm-json-coffeescript-jquery-heroku)
Solution
It looks like they broke something with the RC2 dependencies. I just updated an RC2 project to RC3 and it ran fine on Heroku. Just update the following line in project/plugins.sbt
to update to RC3:
addSbtPlugin("play" % "sbt-plugin" % "2.0-RC3")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow