diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-04-27 09:40:05 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-04-28 13:34:01 -0400 |
commit | 373a16fef9dd00dbbd9b1fa973c1bd5f51994fc6 (patch) | |
tree | 634c601d31e95bfad9a81974850c7ca1ab3f9b08 | |
parent | 797855bbad9df5bda34884a4c518b6145130a9bd (diff) | |
download | cbt-373a16fef9dd00dbbd9b1fa973c1bd5f51994fc6.tar.gz cbt-373a16fef9dd00dbbd9b1fa973c1bd5f51994fc6.tar.bz2 cbt-373a16fef9dd00dbbd9b1fa973c1bd5f51994fc6.zip |
Build mixin with recommended settings
-rw-r--r-- | stage2/BasicBuild.scala | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala index 46f9d5a..b489947 100644 --- a/stage2/BasicBuild.scala +++ b/stage2/BasicBuild.scala @@ -11,6 +11,17 @@ import java.util.jar._ import scala.collection.immutable.Seq import scala.util._ +trait Recommended extends BasicBuild{ + override def scalacOptions = super.scalacOptions ++ Seq( + "-feature", + "-deprecation", + "-unchecked", + "-language:postfixOps", + "-language:implicitConversions", + "-language:higherKinds", + "-language:existentials" + ) +} class BasicBuild( context: Context ) extends Build( context ) class Build(val context: Context) extends Dependency with TriggerLoop with SbtDependencyDsl{ // library available to builds @@ -107,7 +118,7 @@ class Build(val context: Context) extends Dependency with TriggerLoop with SbtDe // ========== compile, run, test ========== /** scalac options used for zinc and scaladoc */ - def scalacOptions: Seq[String] = Seq( "-feature", "-deprecation", "-unchecked" ) + def scalacOptions: Seq[String] = Seq() private object needsUpdateCache extends Cache[Boolean] def needsUpdate: Boolean = needsUpdateCache( |