Skip to content

Instantly share code, notes, and snippets.

@kermitas
Last active January 27, 2016 00:16
Show Gist options
  • Save kermitas/370f5ffb6977c3d1bb25 to your computer and use it in GitHub Desktop.
Save kermitas/370f5ffb6977c3d1bb25 to your computer and use it in GitHub Desktop.
Easy to read and easy to maintain Build.scala (SBT's main file).
object Build extends sbt.Build {
implicit val artifactConfig = ArtifactConfig(
name = "lift-problem",
organization = "org.stanek",
version = "0.1.0-SNAPSHOT"
)
// ==== projects definition
// ---- models
val model = ProjectLiftProblemModel()
// ---- APIs
val api = ProjectLiftProblemApi(model)
// ---- implementations
val impl1 = ProjectLiftProblemImpl1(api)
// ---- executable projects
lazy val main = ProjectLiftProblemMain(impl1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment