Deploy Scala App to Heroku

I have a sample application written in Play and Scala talking to Amazon DynamoDB and I am trying to deploy it to Heroku. Heroku has instructions for deploying a Play app or a Scala app, but not both. I tried to combine instructions for both, but in a nutshell. I see this error,

  [info] Compiling 1 Scala source to /tmp/build_1q6humfwtqitn/.sbt_home/.sbt/plugins/target/scala-2.9.1/sbt-0.11.2/classes...
   [info] Loading project definition from /tmp/build_1q6humfwtqitn/project
   [warn]   module not found: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0
   [warn] ==== typesafe-ivy-releases: tried
   [warn]   http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml
   [warn] ==== local: tried
   [warn]   /tmp/build_1q6humfwtqitn/.sbt_home/.ivy2/local/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml
   [warn] ==== typesafe-ivy-releases: tried
   [warn]   http://repo.typesafe.com/typesafe/ivy-releases/com.typesafe.startscript/xsbt-start-script-plugin/scala_2.9.1/sbt_0.11.2/0.3.0/ivys/ivy.xml
   [warn] ==== heroku-sbt-typesafe: tried
   [warn] ==== heroku-central: tried
   [warn]   http://s3pository.heroku.com/maven-central/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
   [warn] ==== heroku-scala-tools-releases: tried
   [warn]   http://s3pository.heroku.com/maven-scala-tools-releases/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
   [warn] ==== heroku-scala-tools-snapshots: tried
   [warn]   http://s3pository.heroku.com/maven-scala-tools-snapshots/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
   [warn] ==== heroku-sbt-typesafe: tried
   [warn] ==== heroku-central: tried
   [warn]   http://s3pository.heroku.com/maven-central/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
   [warn] ==== heroku-scala-tools-releases: tried
   [warn]   http://s3pository.heroku.com/maven-scala-tools-releases/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
   [warn] ==== heroku-scala-tools-snapshots: tried
   [warn]   http://s3pository.heroku.com/maven-scala-tools-snapshots/com/typesafe/startscript/xsbt-start-script-plugin_2.9.1_0.11.2/0.3.0/xsbt-start-script-plugin-0.3.0.pom
   [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
   [warn]   ::          UNRESOLVED DEPENDENCIES         ::
   [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
   [warn]   :: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0: not found
   [warn]   ::::::::::::::::::::::::::::::::::::::::::::::
   [warn] 
   [warn]   Note: Some unresolved dependencies have extra attributes.  Check that these dependencies exist with the requested attributes.
   [warn]       com.typesafe.startscript:xsbt-start-script-plugin:0.3.0 (sbtVersion=0.11.2, scalaVersion=2.9.1)
   [warn] 
   [error] {file:/tmp/build_1q6humfwtqitn/project/}default-646eae/*:update: sbt.ResolveException: unresolved dependency: com.typesafe.startscript#xsbt-start-script-plugin;0.3.0: 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

      

Also, I am new to Java, Play and Scala, but familiar with deploying a Rails application on Heroku.

+3


source to share


1 answer


Either change your version com.typesafe.startscript:xsbt-start-script-plugin:0.3.0

to 0.5.0 (wherever you specify this dependency) or edit your build.properties file to install sbt.version=0.11.0

.



+2


source







All Articles