You need to remove the comment from your project/build.properties file. It does work to have it there locally with sbt, but the Heroku Scala Buildpack doesn't know how to handle it. This is a bug in the buildpack. Feel free to file an issue:
https://github.com/heroku/heroku-buildpack-scala/issues


Also you need an empty line between statements in your project/plugins.sbt file:

// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/";

// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.1")


Let me know if that works.

-James


On 05/14/2012 12:53 PM, Magnus Andersson wrote:
Hi, I added the dependency (pushed to github mentioned earlier as well).
But now I get this instead:
-----> Heroku receiving push
-----> Scala app detected
! Error, you have defined an unsupported sbt.version in
project/build.properties
! You must use a release verison of sbt, sbt.version=0.11.0 or greater
! Heroku push rejected, failed to compile Scala app

Which makes me confused.

The plugins.sbt now reads as follows:
// The Typesafe repository
resolvers += "Typesafe repository" at
"http://repo.typesafe.com/typesafe/releases/";
// Use the Play sbt plugin for Play projects
addSbtPlugin("play" % "sbt-plugin" % "2.0.1")

build.properties reads:
// Use the Play sbt plugin for Play projects
sbt.version=0.11.2

I tried this in a clean separate Heroku and got the the same result. So
there is something wrong with my configuration, but I'm not figuring out
why. Any pointers greatly appreciated.

Code is located at: [email protected]:magnusart/magnusart-blog.git

/Magnus

Den måndagen den 14:e maj 2012 kl. 14:55:22 UTC+2 skrev James Ward:

    It looks like you are missing the typesafe resolver in
    project/plugins.sbt:

    resolvers += "Typesafe repository" at
    "http://repo.typesafe.com/typesafe/releases/
    <http://repo.typesafe.com/typesafe/releases/>"


    Let me know if that helps.

    -James


    On 05/14/2012 05:59 AM, Magnus Andersson wrote:
     > Hi James
     > Sorry for the late reply, I didn't get anything in my inbox (must
    have
     > missed the checkbox for this group)
     >
     > Yes. You can view the source here:
     > https://github.com/magnusart/magnusart-blog
    <https://github.com/magnusart/magnusart-blog>
     >
     > It is very strange in deed. I did have a custom buildpack (with
    SBT 11.0
     > configured) but I removed that config as part of upgrading. Could
    that
     > have something to do with this issue?
     >
     > I'll try to create a fresh heroku app and deploy to that one
    tonight.
     > /Magnus
     >
     > Den fredagen den 11:e maj 2012 kl. 18:24:08 UTC+2 skrev James Ward:
     >
     > Yes, Play 2.0.1 should work fine. I've tested it with a number of
     > projects. So this is strange that it failed.
     >
     > Does your project/plugins.sbt include:
     > addSbtPlugin("play" % "sbt-plugin" % "2.0.1")
     >
     > -James
     >
     >
     > On 05/11/2012 09:36 AM, Magnus Andersson wrote:
     > > Hi
     > >
     > > I have upgraded my application to Play 2.0.1. That works fine
     > locally
     > > but when I deploy to Heroku there are missing dependencies (see
     > snippet
     > > below). Does Heroku support Play 2.0.1
     > >
     > > [warn] ::::::::::::::::::::::::::::::::::::::::::::::
     > > [warn] :: UNRESOLVED DEPENDENCIES ::
     > > [warn] ::::::::::::::::::::::::::::::::::::::::::::::
     > > [warn] :: play#play_2.9.1;2.0.1: not found
     > > [warn] :: play#templates_2.9.1;2.0.1: not found
     > > [warn] :: play#console_2.9.1;2.0.1: not found
     > > [warn] ::::::::::::::::::::::::::::::::::::::::::::::
     > >
     > > Magnus Andersson
     > >
     > > --
     > > You received this message because you are subscribed to the Google
     > > Groups "Heroku" group.
     > >
     > > To unsubscribe from this group, send email to
     > > [email protected]
    <mailto:heroku%[email protected]>
     > <mailto:heroku%[email protected]
    <mailto:heroku%[email protected]>>
     > > For more options, visit this group at
     > > http://groups.google.com/group/heroku?hl=en_US?hl=en
    <http://groups.google.com/group/heroku?hl=en_US?hl=en>
     > <http://groups.google.com/group/heroku?hl=en_US?hl=en
    <http://groups.google.com/group/heroku?hl=en_US?hl=en>>
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Heroku" group.
     >
     > To unsubscribe from this group, send email to
     > [email protected]
    <mailto:heroku%[email protected]>
     > For more options, visit this group at
     > http://groups.google.com/group/heroku?hl=en_US?hl=en
    <http://groups.google.com/group/heroku?hl=en_US?hl=en>

--
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

--
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to