SBT

You can set up sbt to automatically compile your program as soon as any source file changes.  To do so, type:

sbt ~compile

Continuous compilation is a great time-saver.

To package your program for distribution as a jar, type:

sbt package

A jar containing all your compiled classes and resources frommyproject/src/main/resources will be found in myproject/target/scala-YOUR_SCALA_VERSION_HERE. Note that dependencies are NOT included in the jar. To include all dependencies into the output jar, you will need to use the assembly plugin. See the next step for pointers to info about plugins.

本篇發表於 Uncategorized。將永久鏈結加入書籤。

發表留言