I'd like to make sbt
independent of my ssh session.
I have installed sbt-assembly
I managed to have the it spit out a fat jar after running the tests.
[info] Assembly up to date: /home/../target/scala-2.11/root-assembly-0.1.jar
[success] Total time: 6 s, completed Aug 10, 2015 2:43:06 PM
However, I did not manage to understand what comes next.
This is how my build.sbt
looks like.
lazy val root = (project in file(".")).
settings(
organization := "hidethis",
version := "0.1",
scalaVersion := "2.11.6",
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8"),
unmanagedBase := baseDirectory.value / "custom_lib",
mainClass in Compile := Some("webserver.Root")
)
libraryDependencies ++= {
val akkaV = "2.3.9"
val sprayV = "1.3.3"
Seq(
"io.spray" %% "spray-can" % sprayV,
"io.spray" %% "spray-routing" % sprayV,
"io.spray" %% "spray-json" % "1.3.2",
"io.spray" %% "spray-testkit" % sprayV % "test",
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"org.specs2" %% "specs2-core" % "2.3.11" % "test",
"org.scalikejdbc" %% "scalikejdbc" % "2.2.7",
"org.postgresql" % "postgresql" % "9.4-1200-jdbc41"
)
}
Revolver.settings
There's an example in the sbt-assembly
tutorial page that looks like this:
lazy val app = (project in file("app")).
settings(commonSettings: _*).
settings(
// your settings here
)
but I am not sure how this works.