aboutsummaryrefslogtreecommitdiff
path: root/stage2/ports.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-04-02 00:18:37 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-04-02 00:25:43 -0400
commit56c49924f4016b922801d0ab28c787240044e886 (patch)
tree0de314955ec3be08801be7ee87aae96b8bc87145 /stage2/ports.scala
parent5553c92eec89fa06c6eaa61645b2c9cb8332f404 (diff)
downloadcbt-56c49924f4016b922801d0ab28c787240044e886.tar.gz
cbt-56c49924f4016b922801d0ab28c787240044e886.tar.bz2
cbt-56c49924f4016b922801d0ab28c787240044e886.zip
propagate scala versions into aliased dependencies
not necessary for plugins yet, but will be when we allow choosing your scala version for build files
Diffstat (limited to 'stage2/ports.scala')
-rw-r--r--stage2/ports.scala7
1 files changed, 5 insertions, 2 deletions
diff --git a/stage2/ports.scala b/stage2/ports.scala
index 51ae4f0..e7e3863 100644
--- a/stage2/ports.scala
+++ b/stage2/ports.scala
@@ -1,7 +1,10 @@
package cbt
-class ports( context: Context ) {
+class ports( context: Context, scalaVersion: String ) {
private def dep( name: String ) = DirectoryDependency(
- context.copy( workingDirectory = context.cbtHome / "ports" / name ),
+ context.copy(
+ scalaVersion = Some( scalaVersion ),
+ workingDirectory = context.cbtHome / "ports" / name
+ ),
None
)
def mima = dep( "migration-manager" )