title: Scala SBT build multi module project to runnable jars
body: <p>I am having problems building and running an SBT project.</p>
  
  <ul>
  <li><p>The "protocol" project is used by several modules, including the "daemon".</p></li>
  <li><p>The "daemon" project should be packaged as an executable jar.</p></li>
  </ul>
  
  <p>What is the "right" way of doing this?</p>
  
  <p>Here's my Build.scala:</p>
  
  <pre><code>object MyBuild extends Build {
  lazy val buildSettings = Seq(
      organization := "com.example",
      version      := "1.0-SNAPSHOT",
      scalaVersion := "2.9.1"
      )
  
  lazy val root = Project(
      id = "MyProject",
      base = file("."),
      aggregate = Seq(protocol, daemon)
      )
  
  lazy val protocol = Project(
      id = "Protocol",
      base = file("Protocol")
      )
  
  lazy val daemon = Project(
      id = "Daemon",
      base = file("Daemon"),
      dependencies = Seq(protocol)
      )
  // (plus more projects)
  </code></pre>