Which error are you getting?

Can you run "sbt stage" locally and make sure that works?

-James


On 03/04/2012 02:50 PM, Jay wrote:
I'm getting the same error, but I can't repair.


project/Build.scala
==================

import sbt._

import Keys._

import com.typesafe.startscript.StartScriptPlugin

object MyProjectBuild extends Build {

val mySettings = StartScriptPlugin.startScriptForClassesSettings ++
Defaults.defaultSettings ++ Seq(

name := "gloo-http",

version := "1.0",

scalaVersion := "2.9.1",

libraryDependencies ++= Seq(

"com.typesafe.akka"% "akka"% "2.0-RC1",

"com.typesafe.akka"% "akka-remote"% "2.0-RC1",

"com.typesafe"% "play-mini_2.9.1"% "2.0-RC3",

"org.mongodb"%% "casbah"% "3.0.0-M2"),

resolvers ++= Seq(

"Typesafe Snapshots"at "http://repo.typesafe.com/typesafe/snapshots/";,

"Typesafe Releases"at "http://repo.typesafe.com/typesafe/releases/";,

"Typesafe 3rd parties"at "http://repo.typesafe.com/typesafe/third-party";,

"Maven 1"at "http://repo1.maven.org/maven2/org/";,

"Java.net Maven2 Repository"at "http://download.java.net/maven/2/";,

"Ibiblio"at "http://mirrors.ibiblio.org/pub/mirrors/maven2";,

"sonatype.repo"at "https://oss.sonatype.org/content/groups/public";),

// compile options

scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),

javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"))

val myProject = Project("MyProject", file("."), settings = mySettings)

}


project/build.properties
=================\

sbt.version=0.11.2

On Friday, January 13, 2012 4:23:33 PM UTC-7, Maxime Lévesque wrote:


    There are no other files except for a scala source file, it's just a
    proof of concept project,

    I ended up trying 0.11.1 and it just worked, it looks like it's the
    only version supported,

    the error message is probably wrong. I made the experiment of
    bumping the version to 0.11.2

    and there was yet another message : Server unexpectedly hangled up

    Now, just 1 minute ago, I bumped the version to 0.11.2, pushed it
    and it worked ...

    Thanks

    ML


    2012/1/13 Doug Tangren <[email protected]
    <mailto:[email protected]>>



        2012/1/11 Maxime Lévesque <[email protected]
        <mailto:[email protected]>>


            I get the error message bellow, it looks like the wrong
            error message because I got it while
            using SBT 0.11.0 and 0.11.2

            The relevant files are :

            ============== ./project/build.properties===================

            sbt.version=0.11.0

            ============== ./project/plugins.sbt ===================

            addSbtPlugin("com.typesafe.startscript" %
            "xsbt-start-script-plugin" % "0.3.0")

            ============== ./project/Build.scala ===================


            import sbt._
            import Keys._
            import com.typesafe.startscript.StartScriptPlugin


            object Buildz extends Build {

            def buildSettings =
            Defaults.defaultSettings ++
            StartScriptPlugin.startScriptForClassesSettings ++ Seq(
            organization := "net.strong_links",
            version := "0.9",
            scalaVersion := "2.9.1",
            resolvers += ScalaToolsSnapshots
            )

            lazy val buildProject = Project(
            id = "project",
            base = file("project")
            )

            val jettyVersion = "7.5.4.v20111024"


            lazy val htest = Project(
            id = "htest",
            base = file("htest"),
            settings = buildSettings ++ Seq(
            libraryDependencies ++= Seq(
            "net.databinder" %% "unfiltered-filter" % "0.5.1",
            "net.databinder" %% "unfiltered-jetty" % "0.5.1",
            "org.slf4j" % "slf4j-api" % "1.6.1",
            "ch.qos.logback" % "logback-classic" % "1.0.0",
            "org.eclipse.jetty" % "jetty-webapp" % jettyVersion
            )
            )
            )

            lazy val root = Project(
            id = "root",
            base = file("."),
            settings = buildSettings
            ) aggregate(htest)
            }

            ==============================================================


            $ git push heroku master
            Counting objects: 19, done.
            Delta compression using up to 2 threads.
            Compressing objects: 100% (10/10), done.
            Writing objects: 100% (19/19), 1.89 KiB, done.
            Total 19 (delta 1), reused 0 (delta 0)

            -----> 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

            To [email protected]:radiant-leaf-3551.git
            ! [remote rejected] master -> master (pre-receive hook declined)
            error: failed to push some refs to
            '[email protected]:radiant-leaf-3551.git'


        Are there any other files you have not listed here. You can
        shoot yourself in the foot by adding something to a .slugignore
        file in the root of your repo that heroku uses to lint and
        resolve the type of app you are deploying.

            --
            You received this message because you are subscribed to the
            Google Groups "Heroku" group.
            To view this discussion on the web visit
            https://groups.google.com/d/msg/heroku/-/CN1pASrDK_YJ
            <https://groups.google.com/d/msg/heroku/-/CN1pASrDK_YJ>.
            To post to this group, send email to [email protected]
            <mailto:[email protected]>.
            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
            <http://groups.google.com/group/heroku?hl=en>.


        --
        You received this message because you are subscribed to the
        Google Groups "Heroku" group.
        To post to this group, send email to [email protected]
        <mailto:[email protected]>.
        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
        <http://groups.google.com/group/heroku?hl=en>.


--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/heroku/-/5HTdb2TmM4gJ.
To post to this group, send email to [email protected].
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.

--
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
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.

Reply via email to