diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-14 22:15:52 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-15 01:24:46 -0400 |
commit | ee439cdc67034d35762d54a6d87d51844fcf6dde (patch) | |
tree | c6aa1a4663c63f13638b16f263105a6e72f2cf6e /stage2/BasicBuild.scala | |
parent | 8794d3ce0ca7f92df24c317c9a9b7025aa0e3dee (diff) | |
download | cbt-ee439cdc67034d35762d54a6d87d51844fcf6dde.tar.gz cbt-ee439cdc67034d35762d54a6d87d51844fcf6dde.tar.bz2 cbt-ee439cdc67034d35762d54a6d87d51844fcf6dde.zip |
turn Build base classes into traits for less verbosity and uniform usage with any other plugin
Diffstat (limited to 'stage2/BasicBuild.scala')
-rw-r--r-- | stage2/BasicBuild.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stage2/BasicBuild.scala b/stage2/BasicBuild.scala index 978f604..49a73ef 100644 --- a/stage2/BasicBuild.scala +++ b/stage2/BasicBuild.scala @@ -10,7 +10,7 @@ import java.util.jar._ import scala.collection.immutable.Seq import scala.util._ -trait Recommended extends BasicBuild{ +trait Recommended extends BaseBuild{ override def scalacOptions = super.scalacOptions ++ Seq( "-feature", "-deprecation", @@ -21,7 +21,10 @@ trait Recommended extends BasicBuild{ "-language:existentials" ) } -class BasicBuild(val context: Context) extends DependencyImplementation with BuildInterface with TriggerLoop with SbtDependencyDsl{ +class BasicBuild(val context: Context) extends BaseBuild +trait BaseBuild extends DependencyImplementation with BuildInterface with TriggerLoop with SbtDependencyDsl{ + def context: Context + // library available to builds implicit protected final val logger: Logger = context.logger implicit protected final val classLoaderCache: ClassLoaderCache = context.classLoaderCache |