Add project-main-class support.

This commit is contained in:
Sarah Gerweck 2015-04-14 21:32:55 -07:00
parent 8bd3d58361
commit 65a6c47b2e

View File

@ -16,6 +16,7 @@ sealed trait Basics {
final val extraScalaVersions = Seq.empty final val extraScalaVersions = Seq.empty
final val buildJavaVersion = "1.8" final val buildJavaVersion = "1.8"
lazy val defaultOptimize = true lazy val defaultOptimize = true
final val projectMainClass = None
lazy val parallelBuild = false lazy val parallelBuild = false
lazy val cachedResolution = false lazy val cachedResolution = false
@ -72,6 +73,7 @@ object BuildSettings extends Basics {
val buildSettings = buildMetadata ++ val buildSettings = buildMetadata ++
siteSettings ++ siteSettings ++
projectMainClass.toSeq.map(mainClass := Some(_)) ++
Seq ( Seq (
organization := buildOrganization, organization := buildOrganization,