diff options
Diffstat (limited to 'stage2/mixins.scala')
-rw-r--r-- | stage2/mixins.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stage2/mixins.scala b/stage2/mixins.scala index 48e54e1..70e472f 100644 --- a/stage2/mixins.scala +++ b/stage2/mixins.scala @@ -1,5 +1,6 @@ package cbt package mixins +import java.net.URL import scala.collection.immutable.Seq import java.io._ trait Test extends BasicBuild{ @@ -39,3 +40,19 @@ trait ScalaParadise extends BasicBuild{ ) ) } + +trait Suggested extends BasicBuild{ + override def scalacOptions = super.scalacOptions ++ Seq( + "-language:experimental.macros" + ) +} + +trait Github extends PublishBuild{ + def user: String + def githubProject = name + def githubUser = user + final def githubUserProject = githubUser ++ "/" ++ githubProject + override def url = new URL(s"http://github.com/$githubUserProject") + override def scmUrl = s"git@github.com:$githubUserProject.git" + override def scmConnection = s"scm:git:$scmUrl" +} |