SBT stop run without exiting

前端 未结 4 1520
迷失自我
迷失自我 2020-11-30 23:00

How do you terminate a run in SBT without exiting?

I\'m trying CTRL+C but it exits SBT. Is there a way to only exit the running application while keeping SBT open?

4条回答
  •  一生所求
    2020-11-30 23:56

    Consider using sbt-revolver. We use it in our company and it's really handy. For what you're asking can be done with:

    reStart
    
    reStop
    

    Without need to configure build.sbt file.

    Your can use this plugin by adding:

    addSbtPlugin("io.spray" % "sbt-revolver" % "0.9.1")
    

    To your project/plugins.sbt

提交回复
热议问题