From 373a16fef9dd00dbbd9b1fa973c1bd5f51994fc6 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Wed, 27 Apr 2016 09:40:05 -0400 Subject: Build mixin with recommended settings --- stage2/BasicBuild.scala | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'stage2') 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( -- cgit v1.2.3