>>59116377
By the way, this is a typical build.sbt configuration file (taken from https://www.lightbend.com/activator/template/hello-akka-java8, with extra comments by me):
// stuff you yourself use to name and version your project
name := "hello-akka-java8"
version := "1.0"
scalaVersion := "2.10.3"
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
// leads to dependencies being downloaded off the default maven repositories and injected into the build path so your program can use it
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.1"
)
// bonus Java8 check on initialization
initialize := {
val _ = initialize.value
if (sys.props("java.specification.version") != "1.8")
sys.error("Java 8 is required for this project.")
}
After you got this you just throw code into the src/main/java subdirectory (relative to this build.sbt file).
SBT will do your "compile", "run", "test" or whatever else for you, even automatically on file changes (~compile, ~run, ~test).
[That's just the start though, SBT can do just about fucking everything ever.]