aboutsummaryrefslogtreecommitdiff
path: root/stage2/libraries.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-30 10:47:28 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-30 11:03:55 -0400
commit3446af59a17bdef8730008a61eade7937b9cda56 (patch)
treec3785086e3a9985abde78477a3b4bd997b512273 /stage2/libraries.scala
parent249b4a04bac50fcb9510e71ad142fcabf7b7f61d (diff)
downloadcbt-3446af59a17bdef8730008a61eade7937b9cda56.tar.gz
cbt-3446af59a17bdef8730008a61eade7937b9cda56.tar.bz2
cbt-3446af59a17bdef8730008a61eade7937b9cda56.zip
scalatest plugin for 2.12 (and move most code from plugin into library)
Diffstat (limited to 'stage2/libraries.scala')
-rw-r--r--stage2/libraries.scala11
1 files changed, 9 insertions, 2 deletions
diff --git a/stage2/libraries.scala b/stage2/libraries.scala
index 3d2951c..f0e4ecc 100644
--- a/stage2/libraries.scala
+++ b/stage2/libraries.scala
@@ -1,6 +1,12 @@
package cbt
-class libraries( context: Context ) {
- private def dep( name: String ) = DirectoryDependency( context.cbtHome / "libraries" / name )( context )
+class libraries( context: Context, scalaVersion: String ) {
+ private def dep( name: String ) = DirectoryDependency(
+ context.copy(
+ scalaVersion = Some( scalaVersion ),
+ workingDirectory = context.cbtHome / "libraries" / name
+ ),
+ None
+ )
def captureArgs = dep( "capture_args" )
def eval = dep( "eval" )
def file = dep( "file" )
@@ -9,4 +15,5 @@ class libraries( context: Context ) {
def common_0 = dep( "common-0" )
def common_1 = dep( "common-1" )
def interfaces = dep( "interfaces" )
+ def scalatestRunner = dep( "scalatest-runner" )
}