I've seen near-variants of this question, but not with answers that have all the useful information.
Using sbt 0.13.13 and sbt-assembly 0.14.3, and a multi-project build.sbt based on http://www.scala-sbt.org/0.13/docs/Multi-Project.html like this:
lazy val commonSettings = Seq(
version := "2.3.0",
scalaVersion := "2.10.6"
)
lazy val config_jar = (project in file(".")).
settings(commonSettings: _*).
settings(
name := "myapp-config",
test in assembly := {},
assemblyJarName in assembly := "myapp-config.jar",
includeFilter in Compile := "myapp.conf"
)
lazy val build_jar = (project in file(".")).
settings(commonSettings: _*).
settings(
name := "myapp",
excludeFilter in Compile := "myapp.conf",
libraryDependencies += ...
)
Is this enough configuration to be able to build two separate jars? What exactly are the full sbt commands to build each
or both from the command line? The command sbt projects
only shows build_jar, so something's missing.