How to use sbt with Google App Engine?

后端 未结 7 1833
北海茫月
北海茫月 2021-01-31 05:08

Has anybody tried to setup sbt to work with Google App Engine? I dream about using development server auto-reloading after source changes.

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 05:58

    Here's a template project using sbt + appengine which can be used to get started:

    https://github.com/mtkopone/sbt-scalatra-appengine-template

    Also, instead of having to publish the sbt-appengine-plugin locally, you can use the following in Plugins.scala:

    import sbt._
    class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
      lazy val appEngine = "net.stbbs.yasushi" % "sbt-appengine-plugin" % "2.1" 
        from "http://cloud.github.com/downloads/Yasushi/sbt-appengine-plugin/sbt-appengine-plugin-2.1.jar"  
    }
    

提交回复
热议问题