diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-06-19 16:31:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-19 16:31:47 -0400 |
commit | bb856040475cc15fe0754a52428375bd36f8b782 (patch) | |
tree | 3fe563f8596b49a136e12dfd693f7b21c0afc90d /stage2/mixins.scala | |
parent | 9596983505f1e0d2e4c582e1c23f04e35b42fde1 (diff) | |
parent | 32691b7908150970344a5c3a5c58fef9dec0a6ac (diff) | |
download | cbt-bb856040475cc15fe0754a52428375bd36f8b782.tar.gz cbt-bb856040475cc15fe0754a52428375bd36f8b782.tar.bz2 cbt-bb856040475cc15fe0754a52428375bd36f8b782.zip |
Merge pull request #150 from cvogt/chris2
various changes
Diffstat (limited to 'stage2/mixins.scala')
-rw-r--r-- | stage2/mixins.scala | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/stage2/mixins.scala b/stage2/mixins.scala deleted file mode 100644 index 221fcc5..0000000 --- a/stage2/mixins.scala +++ /dev/null @@ -1,57 +0,0 @@ -package cbt -package mixins -import java.net.URL -import java.io._ -trait Test extends BaseBuild{ - lazy val testedBuild = BuildDependency( projectDirectory.parent ) - override def dependencies = Seq( testedBuild ) ++ super.dependencies - override def defaultScalaVersion = testedBuild.build.scalaVersion -} -trait SbtTest extends Test{ - override def sources = Vector( projectDirectory.parent ++ "/src/test/scala" ) -} - -trait ScalaParadise extends BaseBuild{ - def scalaParadiseVersion = "2.1.0" - - private def scalaParadiseDependency = - Resolver( mavenCentral ).bindOne( - "org.scalamacros" % ("paradise_" ++ scalaVersion) % scalaParadiseVersion - ) - - override def dependencies = ( - super.dependencies // don't forget super.dependencies here - ++ ( - if(scalaVersion.startsWith("2.10.")) - Seq(scalaParadiseDependency) - else - Seq() - ) - ) - - override def scalacOptions = ( - super.scalacOptions - ++ ( - if(scalaVersion.startsWith("2.10.")) - Seq("-Xplugin:"++scalaParadiseDependency.exportedClasspath.string) - else - Seq() - ) - ) -} - -trait Suggested extends BaseBuild{ - override def scalacOptions = super.scalacOptions ++ Seq( - "-language:experimental.macros" - ) -} - -trait Github extends Publish{ - 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" -} |