使用Git将scala项目推送到Heroku - 针对sbt.version的错误

时间:2014-03-15 20:17:14

标签: git scala heroku

我总是得到同样的错误:

-----> Scala app detected
-----> Installing OpenJDK 1.6...done
 !      Error, your scala project must include project/build.properties and defi
ne sbt.version
 !      You must use a release verison of sbt, sbt.version=0.11.0 or greater

 !     Push rejected, failed to compile Scala app

To git@heroku.com:polar-ravine-8040.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:polar-ravine-8040.git'

我按照建议设置了build.properties,但这不起作用。我的机器上安装了sbt版本0.13.1。还想将OpenJdk 1.6更改为使用java 7,在项目中放置system.properites文件,但也不起作用。

1 个答案:

答案 0 :(得分:1)

删除任何无关的空格(例如,build.properties文件末尾的空白行)。请参阅https://github.com/ghostm/lift_blank_heroku/issues/1

<强>更新

问题可能是Heroku Scala buildpack尚不支持sbt 13.1。请参阅https://github.com/heroku/heroku-buildpack-scala/issues/56