Here's a short little guide to sbt's build structure.
First off, the key you need to investigate how sbt is building things. Here's a snippet from a build.sbt:
import sbt.Keys._
val bs: sbt.BuildStructure = buildStructure.valueThis will give you all the gory details of our build (or builds, as is the case).